test query

Returns 10000 smart contract events on Ethereum, where smart contract event is d78ad9…d822, time since 2024-01-05 and time before 2024-01-05, sorted by block timestamp iso8601 transaction hash, highest first: address address, iso8601, block height, transaction hash, argument and arguments value.

By allen · saved 28 May 2024 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery($signature: String!, $since: ISO8601DateTime, $before: ISO8601DateTime, $offset: Int, $limit: Int) {
  ethereum(network: ethereum) {
    smartContractEvents(
      options: {limit: $limit, offset: $offset, desc: ["block.timestamp.iso8601", "transaction.hash"]}
      smartContractEvent: {is: $signature}
      time: {since: $since, before: $before}
    ) {
      smartContract {
        address {
          address
        }
      }
      block {
        timestamp {
          iso8601
        }
        height
      }
      transaction {
        hash
      }
      arguments {
        argument
        value
      }
    }
  }
}

Variables

{
  "signature": "d78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
  "since": "2024-01-05T12:00:00Z",
  "before": "2024-01-05T13:00:00Z",
  "offset": 0,
  "limit": 10000
}

Similar queries