Get Block Number by Timestamp

Returns one block on Ethereum, where date is 2023-05-30, sorted by timestamp iso8601: height and iso8601.

By lukas · saved 30 May 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    blocks(
      date: {is: "2023-05-30T00:00:00Z"}
      options: {limit: 1, asc: "timestamp.iso8601"}
    ) {
      height
      timestamp {
        iso8601
      }
    }
  }
}

Similar queries