getTokenBalances

Returns 100 balance updates on Base, where balance update address is 0x5dC7…5db2, sorted by amount, highest first: chain ID, currency symbol, smart contract, decimals, currency name, has URI, fungible and 3 more fields.

By Jose · saved 11 October 2024 · run 37 times · Bitquery API v2

What it returns

Filters

The query

query getTokenBalances($dataset: dataset_arg_enum!, $network: evm_network, $wallet: String!, $limit: Int) {
  EVM(dataset: $dataset, network: $network) {
    BalanceUpdates(
      limit: {count: $limit}
      orderBy: {descendingByField: "Amount"}
      where: {BalanceUpdate: {Address: {is: $wallet}}, Currency: {Fungible: true}}
    ) {
      ChainId
      Currency {
        Symbol
        SmartContract
        Decimals
        Name
        HasURI
        Fungible
        ProtocolName
        Native
      }
      Amount: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0.001"})
    }
  }
}

Variables

{
  "dataset": "combined",
  "network": "base",
  "wallet": "0x5dC76A02C49d6f15FBdE0506e0d7cc630CEe5db2",
  "limit": 100
}

Similar queries