typescript-sdk

Home > @3rdweb/sdk > DropModule > balanceOf

DropModule.balanceOf() method

Get NFT 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 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);