Blocks in Matic with 4 TX

Returns 10 blocks on Ethereum and Polygon, where time since 2023-11-01, time till 2023-11-06 and transaction count is 4, sorted by height, highest first: timestamp time, height, transaction count, miner address, annotation, reward and reward currency symbol.

By Aleksey · saved 6 November 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    blocks(
      transactionCount: {is: 4}
      options: {desc: "height", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      transactionCount
      address: miner {
        address
        annotation
      }
      reward
      reward_usd: reward(in: USD)
      rewardCurrency {
        symbol
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "matic",
  "from": "2023-11-01T08:57:28.000Z",
  "till": "2023-11-06T09:27:28.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries