api call

Returns 10 address details and balance updates on Ethereum, Polygon, BNB Chain, Tron and Solana, sorted by balance update post balance in USD, highest first: quote and post balance in USD.

By Victor · saved 13 May 2025 · Bitquery API v2

What it returns

The query

query(
  $ethAddr: String!, 
  $polAddr: String!, 
  $bscAddr: String!, 
  $tronAddr: String!, 
  $solAddr: String!
) {
  eth: ethereum(network: ethereum) {
    address(address: {is: $ethAddr}) {
      balances {
        quote
      }
    }
  }
  pol: ethereum(network: polygon) {
    address(address: {is: $polAddr}) {
      balances { quote }
    }
  }
  bsc: ethereum(network: bsc) {
    address(address: {is: $bscAddr}) {
      balances { quote }
    }
  }
  tron: tron(network: tron) {
    address(address: {is: $tronAddr}) {
      balances { quote }
    }
  }
  sol: solana(network: solana) {
    BalanceUpdates(
      where: {BalanceUpdate: {Account: {Owner: {is: $solAddr}}}}
      orderBy: {descendingByField: "BalanceUpdate_PostBalanceInUSD"}
      limit: 10
    ) {
      BalanceUpdate {
        PostBalanceInUSD
      }
    }
  }
}

Similar queries