Skip to main content

Erc721.balanceOf() method

Get NFT Balance

Example

const walletAddress = "{{wallet_address}}";
const balance = await contract.erc721.balanceOf(walletAddress);
console.log(balance);

Signature:

balanceOf(address: string): Promise<BigNumber>;

Parameters

ParameterTypeDescription
addressstring

Returns:

Promise<BigNumber>

Remarks

Get a wallets NFT balance (number of NFTs in this contract owned by the wallet).