Chain Balances
Last updated
Last updated
fetchBalances function of the SDK provides developers with the method required to access and display the balances of all tokens held in an Externally Owned Account (EOA) wallet on a single blockchain.
fetchBalances
accepts the following parameters:
Parameters | Type | Description |
---|---|---|
NOTE:
If the tokenAddresses
are not provided, then balances of all the tokens within the EOA will be fetched.
fetchBalancesOnly
is default to true
.
fetchBalancesOnly
is 'true':fetchBalancesOnly
is 'false':If you face any trouble, feel free to reach out to our engineers in the Telegram support group.
eoaAddress
string
The address for which balance information is needed.
chainId
number
The chain Id of the current network.
tokenAddresses[OPTIONAL]
string[]
Array of the token addresses for which the balances will be fetched.
fetchBalancesOnly
boolean
Default is set to true.
If set to false
then more details of the token are fetched.