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
Parameter | Type | Description |
---|---|---|
address | string |
Returns:
Promise<BigNumber>
Remarks
Get a wallets NFT balance (number of NFTs in this contract owned by the wallet).