Beta
an instance of a NFTContract
the wallet address to check the balance of
Optional
tokenId: RequiredParam<BigNumberish>required for ERC1155, the tokenId to look up
a response object that includes the total balance of the owner
const { data: ownerBalance, isLoading, error } = useNFTBalance(contract, "{{wallet_address}}");
// for ERC1155 contracts, you can also pass a tokenId
const tokenId = 0;
const { data: ownerBalance, isLoading, error } = useNFTBalance(contract, "{{wallet_address}}", tokenId);
ERC721 | ERC1155
Generated using TypeDoc
Get NFT balance of a specific wallet