Split.balanceOfToken() method
Get non-native Token Funds owed to a particular wallet
Example
// The address to check the funds of
const address = "{{wallet_address}}";
// The address of the currency to check the contracts funds of
const tokenAddress = "0x...";
const funds = await contract.balanceOfToken(address, tokenAddress);
console.log(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 contract that is owed to a specific recipient.