block - Ethereum Classic
Query a single Ethereum Classic block with the GraphQL API.
Returns a block by its number or hash (or the latest block when neither is given), letting you select exactly the header fields and nested transactions you need in one request.
Schema
block(number: Long, hash: Bytes32): BlockArguments
number
Long
Block number; omit for the latest block
hash
Bytes32
Block hash (mutually exclusive with number)
Query
query {
block(number: 21200000) {
number
hash
timestamp
gasUsed
gasLimit
miner { address }
transactionCount
}
}Example
Response
Response Fields
number
Long
Block number
hash
Bytes32
Block hash
miner
Account
Block producer account
transactionCount
Int
Number of transactions in the block
Use Cases
Selective Reads: Fetch only the block fields you need
Explorers: Render block pages with nested data
Indexing: Pull block + transactions in one round trip
Error Handling
errors[]
block not found
No block matches the number or hash
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Last updated
Was this helpful?