Skip to main content

Optimistic Block by Height

Fetch an optimistic block document when the endpoint can serve it directly, or follow the documented redirect behavior when the deployment hands off to finalized or archive infrastructure.

Network
FastNear API keyNo saved key
Get API key
Endpointhttps://mainnet.neardata.xyz
Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

GET

This operation performs GET /v0/block_opt/{block_height}.

Required request inputs: yes

GET /v0/block_opt/9820210

Path parameters

block_height *string

Query parameters

apiKeystring

Response reference

200 application/json

Requested document, or null when the selected slice is absent

Response schema

object

Full block document as served by neardata, including block and shards.