Get All Token Balances for an Address
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: base, dataset: combined) archive full history combined archive + realtime in one result A
What it returns
- token balance address
- currency symbol
- currency name
- smart contract
- decimals
- post balance
- post balance in USD
Filters
- token balance address is 0xc940…Cd7E
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: base, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/blockchain/Base/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
{
EVM(network: base) {
TransactionBalances(
orderBy: {descendingByField: "TokenBalance_PostBalanceInUSD_maximum"}
where: {TokenBalance: {Address: {is: "0xc9403be90446323Cf5f5251f1Ff761A04b03Cd7E"}, Currency: {Fungible: true}}}
) {
TokenBalance {
Address
Currency {
Symbol
Name
SmartContract
Decimals
}
PostBalance(maximum: Block_Time)
PostBalanceInUSD(maximum: Block_Time)
}
}
}
}
Similar queries
- Get Token Total Supply and Market Cap · Base · TransactionBalances
- latest liquidity of a Base pool · Base · TransactionBalances
- latest token supply of all active tokens on base chain · Base · TransactionBalances
- native WETH transfer not tracked · Base · TransactionBalances
- tx swap v2 uniswap · Base · TransactionBalances