sdk.erc721base.balanceof
Home > @openformat/sdk > ERC721Base > balanceOf
ERC721Base.balanceOf() method
Gets the number of tokens owned by a specific account. balanceOf
Signature:
balanceOf(params: ERC721BalanceOfParams): Promise<number>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | ERC721BalanceOfParams |
Returns:
Promise<number>
{Promise<number>} A promise that resolves to the number of tokens owned by the specified account.
Exceptions
{Error} If there was an error executing the balanceOf function.