Home > @3rdweb/sdk > SplitsModule > balanceOfToken
Get Token Funds
Signature:
balanceOfToken(walletAddress: string, tokenAddress: string): Promise<CurrencyValue>;
Parameter | Type | Description |
---|---|---|
walletAddress | string | |
tokenAddress | string |
Returns:
Promise<CurrencyValue>
Get the amount of funds in the non-native tokens held by the module thats owed to a specific recipient.
// 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);