Contract Functions

IAccount

Interface for accounts.

Version 5.2.3

IAccount Contract

This interface defines the basic functions for an account.

Functions

  • deposit(uint256 amount): Deposits funds into the account.
  • withdraw(uint256 amount): Withdraws funds from the account.
  • getBalance(): Returns the current balance of the account.
  • Usage

    This interface can be implemented by any contract that needs to represent an account with basic functionalities like deposits, withdrawals, and balance checks.

    Functions

    deposit

    deposit(uint256)

    withdraw

    withdraw(uint256)
    Ask about contract functions, security, or implementation details

    Press Enter to send your query

    Source Code

    1