Get block by hash
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Get a block by its hash.
The chain_getBlock method returns the full block data including the block header and all contained extrinsics (transactions). If no block hash is provided, it returns the latest finalized block.
This method provides complete information about a block including:
- Block header with metadata
- All extrinsics (transactions) in the block
- Block production details
- Parent-child relationships
Body
application/json
jsonrpcstring2.0requiredJSON-RPC version identifier
methodstringchain_getBlockrequiredThe method to be invoked
idinteger | stringrequiredRequest identifier for matching responses
paramsArray<string>requiredArray containing optional block hash
Response
200OK
Block data retrieved successfully
400Bad Request
Invalid block hash or request
404Not Found
Block not found
500Internal Server Error
Internal server error