Skip to main content

sdk.erc20base.balanceof

Home > @openformat/sdk > ERC20Base > balanceOf

ERC20Base.balanceOf() method

Gets the balance of the specified account.

balanceOf

Signature:

balanceOf(params: ERC20BalanceOfParams): Promise<string>;

Parameters

ParameterTypeDescription
paramsERC20BalanceOfParams

Returns:

Promise<string>

{Promise<number>} A promise that resolves to the balance of the account as a number.

Exceptions

{Error} Throws an error if the account address is invalid or the balanceOf call fails.