Home

RC get blocks by range

GET
https://dot-playbook.nownodes.io/v1/rc/blocks

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Changed. An extrinsic that could not be decoded is no longer dropped. It stays at its own index with a new decodeError object (index, reason, rawHex), without method and args, and with era as an empty object; the response then carries partial: true. Before, such entries were skipped, so every later extrinsic received the previous one's events, success, paysFee and fee. Events emitted after the last extrinsic (poll hook, multi block migrations) were discarded and are now returned in a new top-level afterExtrinsics object with the same shape as onFinalize. A block body the node does not have now returns an error instead of an empty list. Extrinsics that were previously skipped on runtimes with several transaction extension versions, and tuple arguments in events, are now decoded correctly. partial and afterExtrinsics are omitted when not needed, so a block that decodes cleanly looks exactly as before.

Returns relay chain blocks within a specified range (max 500 blocks). An entry that could not be decoded is still returned at its own index, with decodeError set, no method or args, and era as an empty object, and the response carries partial: true; its events, success and paysFee come from the block's events, and success is false when the block carried no outcome event for that index. Events emitted after the last extrinsic, by the FRAME poll hook or a multi block migration, are returned in a separate afterExtrinsics object, omitted when the block has none.

Parameters

rangestringquery

Block range (e.g., '100-200')

eventDocsbooleanquery

Include event documentation

extrinsicDocsbooleanquery

Include extrinsic documentation

noFeesbooleanquery

Skip fee calculation

decodedXcmMsgsbooleanquery

Decode and include XCM messages

paraIdinteger<int32>>= 0query

Filter XCM messages by parachain ID

Response

200OK

Relay chain blocks

400Bad Request

Invalid range or missing parameter

500Internal Server Error

Internal server error

503Service Unavailable

Relay chain not configured