top inflow

Returns balance updates on Base, sorted by received, highest first: balance update address, sum of balance update amount and count.

By Aleks M · saved 27 October 2025 · run 1 time · Bitquery API v2

What it returns

The query

query ($contract: String!, $from: ISO8601DateTime!, $limit: Int!) {
  EVM(dataset: combined, network: base) {
    BalanceUpdates(
      where: {
        Currency: { SmartContract: { is: $contract } }
        Block: { Time: { after: $from } }
      }
      orderBy: { descending: Received }
      limit: { count: $limit }
    ) {
      BalanceUpdate { Address }
      Received: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0" })
      TxCount: count
    }
  }
}

Similar queries