Post block
POST /block Returns block details for given height or hash
Request body (application/json):
- id (string): JSON-RPC request id. Auto-populated; can be any string.
- jsonrpc (string): JSON-RPC protocol version. Always
2.0. one of 2.0 - method (string, required): one of block
- params (object, required): one of
block_id:
- block_id (required): one of block_height: integer CryptoHash: string finality:
- finality (string, required): Different types of finality. one of optimistic, near-final, final sync_checkpoint:
- sync_checkpoint (string, required): one of genesis, earliest_available
Responses: 200: no description result: - result (object, required) - author (required): The AccountId of the author of the Block. - chunks (array of object, required) - header (object, required): Contains main info about the block. error: - error (required): one of name, cause: object name, cause: object name, cause: object