typescript-sdk

Home > @3rdweb/sdk > TokenModule > balanceOf

TokenModule.balanceOf() method

Get Token Balance

Signature:

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

Parameters

Parameter Type Description
address string  

Returns:

Promise<CurrencyValue>

The balance of a specific wallet.

Remarks

Get a wallets token balance.

Example

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

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