POSTblock
https://near-mainnet.nodit.io/Returns the block header, the block producer account, and the list of chunk headers included in the block.
Use finality to get the latest block, or block_id (block height or block hash) to get a specific block. The two cannot be used together. If the block cannot be found, the UNKNOWN_BLOCK error is returned; if the node is still syncing, the NOT_SYNCED_YET error is returned. Transactions live in chunks, so call the chunk method with chunks[].chunk_hash to get them.
Request ID. Any string; it is returned unchanged in the response.
Specifies the block finality. Cannot be used together with block_id.
optimistic: the latest block the node has received (may be reorganized)near-final: a Doomslug-final block (not reverted in most cases)final: a fully finalized block
Specifies the block to query by block height (integer) or block hash (base58 string).
Cannot be used together with finality.
Block selector. genesis returns the genesis block; earliest_available returns the oldest block the node holds.
JSON-RPC version
Request ID
Account ID of the validator that produced the block
Block header
Block height.
Example: 220785385
Previous block height
Block hash (base58)
Previous block hash (base58)
Epoch ID of the block (base58)
Next epoch ID (base58)
Previous state root (base58)
Merkle root of chunk receipts (base58)
Merkle root of chunk headers (base58)
Merkle root of chunk transactions (base58)
Merkle root of execution outcomes (base58)
Number of new chunks included in this block
Per shard, in shard order, whether this block includes a new chunk (true included, false missing)
Merkle root of challenges (base58)
List of slashed validators
Block timestamp (Unix nanoseconds). Legacy numeric value; use timestamp_nanosec instead.
Block timestamp (Unix nanoseconds, decimal string)
Random value of the block (base58)
Validator stake changes proposed in this block
Gas price of this block (yoctoNEAR, decimal string)
Ordinal of this block since genesis. Heights without a block are not counted.
Total NEAR supply (yoctoNEAR, decimal string)
Hash of the last fully final block (base58)
Hash of the last Doomslug-final block (base58)
Hash of the next epoch's block producer set (base58)
Merkle root of all block hashes from genesis up to the previous block (base58)
Block body hash (base58)
Epoch sync data hash. null when not applicable.
Validator signatures approving this block. Positions of validators that did not approve are null.
Per chunk, a bitmap (byte array) of validator endorsements
Signature of the block producer
Latest protocol version supported by the block producer
Shard split info during resharding, [shard ID, boundary account ID]. null when not applicable.
Deprecated field; always "0".
Deprecated field; always "0".
Chunk headers in the block (one per shard)
Chunk hash (base58)
Previous block hash (base58)
Merkle root of this chunk's execution outcomes (base58)
Shard state root before the chunk is applied (base58)
Merkle root of the encoded chunk data (base58)
Size of the encoded chunk data (bytes)
Block height at which the chunk was created
Block height at which the chunk was included
ID of the shard the chunk belongs to
Gas used in the chunk
Gas limit of the chunk
Amount burnt in the chunk (yoctoNEAR, decimal string)
Merkle root of receipts sent to other shards (base58)
Merkle root of the transactions in the chunk (base58)
Validator stake changes proposed in the chunk
Shard congestion info. Total gas of delayed and buffered receipts (delayed_receipts_gas, buffered_receipts_gas), receipt size (receipt_bytes), and the allowed shard (allowed_shard).
Bandwidth this shard requests for sending to other shards
Shard split proposed for dynamic resharding. null when there is no proposal.
Signature of the chunk producer
Deprecated field; always "0".
Deprecated field; always "0".
Error class. REQUEST_VALIDATION_ERROR (invalid request), HANDLER_ERROR (processing error), INTERNAL_ERROR (node internal error)
The specific cause of the error.
Name of the error cause (e.g. UNKNOWN_BLOCK, UNKNOWN_ACCOUNT, PARSE_ERROR)
Additional information about the error (block hash, height, account ID, etc.)
Legacy JSON-RPC error code (e.g. -32000 server error, -32700 parse error, -32601 method not found)
Legacy error message
Legacy error details