Example of query with vars

Returns blocks, where block time since 2024-12-14 and block time till 2024-12-14: block time.

By Aleksey · saved 15 December 2023 · run 12 times · Bitquery API v2

What it returns

Filters

The query

query($blockTimeSince: DateTime, $blockTimeTill: DateTime) {
  EVM {
    Blocks(
      where: {
        Block: {Time: {since: $blockTimeSince, till: $blockTimeTill}}}
    ) {
      Block {
Time
      }
    }
  }
}

Variables

{
    "blockTimeSince": "2024-12-14T21:27:45Z",
  "blockTimeTill": "2024-12-14T21:57:45Z"
}

Similar queries