tt

Returns 10 blocks and transfers on Ethereum and bsc_testnet, where time since 2025-01-25 and time till 2025-01-25, sorted by height, highest first: timestamp time, height, transaction count, miner address, annotation, reward and reward currency symbol.

By fatih Mustafa Şengül · saved 25 January 2025 · Bitquery API v2

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    blocks(
      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
      }
    }
    transfers(any: {amount: {}})
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc_testnet",
  "from": "2025-01-25T09:42:07.000Z",
  "till": "2025-01-25T10:12:07.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries