Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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): Block

Arguments

Argument
Type
Description

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

Field
Type
Description

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

Error
Message
Description

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?