This content provides instructions on fetching token data details from specific contracts across all different networks.
In the following examples, we’re going to use the GetTokenBalancesSummary
and
GetTokenBalancesDetails
methods from Sequence Indexer Gateway.
GetTokenBalancesSummary
chainIds
([]int - optional) — return results only for the chains that match the given ID.networks
([]string - optional) — return results only for the chains that match the given names.filter
(object - optional) — query filters.
accountAddresses
([]string)contractStatus
(VERIFIED | UNVERIFIED | ALL)contractWhitelist
([]string)contractBlacklist
([]string)omitNativeBalances
(bool)omitMetadata
(boolean - optional - default: false)GetTokenBalancesDetails
chainIds
([]int - optional) — return results only for the chains that match the given ID.networks
([]string - optional) — return results only for the chains that match the given names.filter
(object - optional) — query filters.
accountAddresses
([]string)contractStatus
(VERIFIED | UNVERIFIED | ALL)contractWhitelist
([]string)contractBlacklist
([]string)omitNativeBalances
(bool)omitMetadata
(boolean - optional - default: false)Example: Get the summary of all verified token balances for a specific account
on mainnet
and polygon
Example: Get the balance details of the USDC contracts on Arbitrum, Polygon and Mainne