typescript-sdk

Home > @3rdweb/sdk > NFTModule > balanceOf

NFTModule.balanceOf() method

Get NFT Balance

Signature:

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

Parameters

Parameter Type Description
address string  

Returns:

Promise<BigNumber>

The balance of the NFTs in the wallet

Remarks

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

Example

// Address of the wallet to check NFT balance
const address = "";

const balance = await module.balanceOf(address);
console.log(balance);