typescript-sdk

Home > @3rdweb/sdk > SplitsModule > balanceOfTokenAllRecipients

SplitsModule.balanceOfTokenAllRecipients() method

Returns all the recipients and their balances in a non-native currency.

Signature:

balanceOfTokenAllRecipients(tokenAddress: string): Promise<{
        [key: string]: CurrencyValue;
    }>;

Parameters

Parameter Type Description
tokenAddress string The address of the currency to check the balances in.

Returns:

Promise<{ [key: string]: CurrencyValue; }>

A map of recipient addresses to their balances in the specified currency.