Home > @3rdweb/sdk > BundleModule > balanceOf
Get NFT Balance
Signature:
balanceOf(address: string, tokenId: string): Promise<BigNumber>;
Parameter | Type | Description |
---|---|---|
address | string | |
tokenId | string |
Returns:
Promise<BigNumber>
Get a wallets NFT balance (number of a specific NFT in this module owned by the wallet).
// Address of the wallet to check NFT balance
const address = "";
// The token ID of the NFT you want to check the wallets balance of
const tokenId = "0"
const balance = await module.balanceOf(address, tokenId);
console.log(balance);