Skip to main content

balanceOf

Contract: JBToken​‌

Interface: IJBToken

An account's balance of this ERC20.

Definition

function balanceOf(address _account, uint256 _projectId)
external
view
override
returns (uint256) { ... }
  • Arguments:
    • _account is the account to get a balance of.
    • _projectId is the ID of the project to which the token belongs. This is ignored.
  • The view function can be accessed externally by anyone.
  • The view function does not alter state on the blockchain.
  • The function overrides a function definition from the IJBToken interface.
  • The function returns the balance of the _account of this ERC20, as a fixed point number with 18 decimals.

Body

  1. Forward the call to the ERC20 implementation.

    return super.balanceOf(_account);

    Inherited references: