Skip to content

One block

GET
/blocks/{block}/

One block, by number or by hash: its hashes and roots, its timestamp, how many extrinsics and events it holds, and whether it is final.

Rate limit: 300 requests per minute per IP (scope explore).

  • None
block
required
string

Block number, or block hash. Both resolve on this route.

The block, with its hashes, roots and counts.

Media typeapplication/json

One block, with its roots and whether it was indexed and decoded in full.

object
id
required

Block number.

integer
hash
required

The block hash, as 0x-prefixed hex, which /blocks/{block}/ also accepts.

string
parent_hash
required

Hash of the block before it. Null when not recorded.

string
nullable
timestamp
required

Block time, from the timestamp set inside the block. Null when not known.

string format: date-time
nullable
extrinsics_count
required

Extrinsics in the block, inherents included, counted when it was indexed.

integer
events_count
required

Events the block emitted, counted when it was indexed; /blocks/{block}/events/ pages through them.

integer
is_final
required

False while the block is the chain’s best head, not yet finalized, usually for 18 to 30 seconds.

boolean
state_root
required

Root of the chain state after the block, from its header. Null when not recorded.

string
nullable
extrinsics_root
required

Root of the block’s extrinsics, from its header. Null when not recorded.

string
nullable
is_indexed
required

Whether its extrinsics and events were indexed. /blocks/ lists indexed blocks only.

boolean
has_decode_error
required

True when part of the block did not decode after a runtime upgrade, so its extrinsics or events may be incomplete.

boolean

Example generated

{
"id": 1,
"hash": "example",
"parent_hash": "example",
"timestamp": "2026-04-15T12:00:00Z",
"extrinsics_count": 1,
"events_count": 1,
"is_final": true,
"state_root": "example",
"extrinsics_root": "example",
"is_indexed": true,
"has_decode_error": true
}

RESOURCE_NOT_FOUND. Carries Cache-Control: public, max-age=15, short because a new block or extrinsic is indexed up to a minute late.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleRESOURCENOTFOUND

RESOURCE_NOT_FOUND

{
"error": true,
"code": "RESOURCE_NOT_FOUND",
"message": "Not found",
"detail": null
}

Rate limit exceeded (300/minute, per IP). Retry-After carries the seconds to wait.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleRATELIMITED

RATE_LIMITED

{
"error": true,
"code": "RATE_LIMITED",
"message": "Request was throttled",
"detail": {
"retry_after": 12
}
}
Retry-After
integer

Seconds before the next request is accepted.