Skip to content

Blocks, newest first

GET
/blocks/

Indexed blocks, newest first, optionally between from_block and to_block. results is an object keyed by block number. Page-number pagination, whose total_count is the size of the block range.

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

  • None
from_block
integer

Lower bound on the block number. An unparseable value is ignored, never a 400.

page
integer

1-based page number. Defaults to 1; an unparseable value falls back to it.

page_size
integer

Rows per page. Default 100, clamped to [1, 1000].

to_block
integer

Upper bound on the block number. An unparseable value is ignored.

One page of blocks, keyed by block number.

Media typeapplication/json

Page-number pagination, with results an object keyed by block number as a string, not an array.

object
results
required

Keyed by block number, as a string.

object
key
additional properties

One block, as a row of /blocks/.

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
pagination
required

Where this page sits in the list. total_count is the size of the block range, the highest block number when no bound is set.

object
page
required

The page served, counting from 1.

integer
page_size
required

Rows per page, the requested size within the route’s bounds.

integer
total_count
required

Exact number of matching rows, whether or not the pages can reach them all.

integer
reachable_count
required

Rows the pages can reach: total_pages times page_size, capped at total_count. Below total_count only when the set runs deeper than the offset cap; read the rest through the cursor where the route offers one.

integer
total_pages
required

Clamped to the deepest page the API will serve (offset <= 10000).

integer
has_next
required

Whether a next page exists within the deepest page served.

boolean
has_previous
required

True past page 1.

boolean
next_cursor

Where the list offers a cursor form (/v2/subnets/{netuid}/?delegators=true, /v2/validators/{hotkey}/): the after= that reads the page after this one, null on the last page, and valid only under the sort, direction and grouping that issued it (a 400 otherwise). Absent on lists with no cursor form.

string
nullable

Example generated

{
"results": {
"additionalProperty": {
"id": 1,
"hash": "example",
"parent_hash": "example",
"timestamp": "2026-04-15T12:00:00Z",
"extrinsics_count": 1,
"events_count": 1,
"is_final": true
}
},
"pagination": {
"page": 1,
"page_size": 1,
"total_count": 1,
"reachable_count": 1,
"total_pages": 1,
"has_next": true,
"has_previous": true,
"next_cursor": "example"
}
}

A parameter failed its check, which message names. code is usually VALIDATION_ERROR.

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

ExampleVALIDATIONERROR

VALIDATION_ERROR

{
"error": true,
"code": "VALIDATION_ERROR",
"message": "page too deep: max page is 401 for page_size=25",
"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.