Skip to main content

sdk.constellation.balanceof

Home > @openformat/sdk > Constellation > balanceOf

Constellation.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.