Blocks

Returns the latest block on Ethereum and BNB Chain, where time after 2022-03-27: timestamp time and height.

By vadyusha · saved 17 August 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!) {
  ethereum(network: $network) {
    blocks(
      options: {desc: "timestamp.time", limit: 1}
      time: {after: "2022-03-27T00:00:35"}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "from": "2023-03-22",
  "till": "2023-03-29T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries