typescript-sdk

Home > @3rdweb/sdk > SplitsModule > balanceOfToken

SplitsModule.balanceOfToken() method

Get Token Funds

Signature:

balanceOfToken(walletAddress: string, tokenAddress: string): Promise<CurrencyValue>;

Parameters

Parameter Type Description
walletAddress string  
tokenAddress string  

Returns:

Promise<CurrencyValue>

Remarks

Get the amount of funds in the non-native tokens held by the module thats owed to a specific recipient.

Example

// The address to check the funds of
const address = "";
// The address of the currency to check the contracts funds of
const tokenAddress = "0x..."
const funds = await module.balanceOfToken(address, tokenAddress);
console.log(funds);