optimized events api for a pool

Returns the latest 20000 events on BNB Chain, where log smart contract is 0x7b5d…48de, signature name is Swap and block time since 2026-01-19: transaction hash, smart contract, arguments name, big integer and value address.

By Akshat · saved 23 January 2026 · Bitquery API v2

What it returns

Filters

The query

query ($pools: [String!]!, $since: DateTime, $till: DateTime, $limit: Int!, $offset: Int!) {
  EVM(dataset: archive, network: bsc) {
    Events(
      limit: {count: $limit, offset: $offset}
      orderBy: {descending: Block_Time}
      where: {Log: {SmartContract: {in: $pools}, Signature: {Name: {is: "Swap"}}}, Block: {Time: {since: $since, till: $till}}, TransactionStatus: {Success: true}}
    ) {
      Transaction {
        Hash
      }
      Log {
        SmartContract
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
        }
      }
    }
  }
}

Variables

{"pools": "0x7b5d3084f190a63cdc2b10cafaf90c336ca948de",
"since": "2026-01-19T00:00:00Z",
  "till":"2026-01-20T00:00:00Z" ,
"limit": 20000,
  "offset":0
}

Similar queries