Examples
Fetch Native Network Balance from all chains
This content provides instructions on getting native balances on all Ethereum networks
Native Token Balances
In the following examples, we’re going to use the GetNativeTokenBalance
method from Sequence Indexer Gateway.
GetNativeTokenBalance
- Request: POST /rpc/IndexerGateway/GetNativeTokenBalance
- Content-Type: application/json
- Body (in JSON):
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.accountAddress
(string) — the wallet account address
These examples are based on the Native network balances example for Indexer.
Fetch all native balances from all chains at once
Example: Get the native balances of an account address across all chains with a single query