getInitTokenBalance

Returns one balance update on Base, where balance update address is 0x5dC7…5db2 and currency smart contract is 0x50c5…b0cb, sorted by block time: balance update amount and amount in USD.

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

What it returns

Filters

The query

query getInitTokenBalance(
  $dataset: dataset_arg_enum!
  $network: evm_network
  $wallet: String!
  $tokenAddress: String!
) {
  EVM(dataset: $dataset, network: $network) {
    BalanceUpdates(
      limit: { count: 1 }
      orderBy: { ascending: Block_Time }
      where: { BalanceUpdate: { Address: { is: $wallet } }, Currency: { SmartContract: { is: $tokenAddress } } }
    ) {
      BalanceUpdate {
        Amount
        AmountInUSD
      }
    }
  }
}

Variables

{
  "dataset": "combined",
  "network": "base",
  "tokenAddress": "0x50c5725949a6f0c72e6c4a641f24049a917db0cb",
  "wallet": "0x5dC76A02C49d6f15FBdE0506e0d7cc630CEe5db2"
}

Similar queries