get_block

The get_block method retrieves detailed information about a specific blockchain block on EOSIO. You can query the block using either its block number or block ID.

Example use cases:

Block Verification
Developers or validators can fetch block details and compare them across nodes to ensure consistency and integrity.

Transaction Confirmation
By examining the block’s transactions field, users can confirm whether a transaction was included and executed successfully.

Data Analysis & Chain Exploration
Analysts can retrieve detailed block data for studying network activity, transaction patterns, and blockchain behavior.


Parameters

parameter
type
description
block_num_or_id
string
The block number or block ID to retrieve.

Return Object

The get_block method returns an object containing detailed block information:

field
description
timestamp
Date and time of the block (YYYY-MM-DDTHH:MM:SS.sss).
producer
The account name of the block producer.
confirmed
Number of prior blocks confirmed by this block producer.
previous
ID of the previous block (Sha256).
transaction_mroot
Merkle root of the transactions included in this block (Sha256).
action_mroot
Merkle root of the actions included in this block (Sha256).
schedule_version
Number of times the producer schedule has changed since genesis.
new_producers
Information about newly elected block producers (nullable array).
header_extensions
Any extensions added to the block header.
new_protocol_features
List of new protocol features activated in this block.
producer_signature
Base58 encoded EOSIO cryptographic signature.
transactions
Array of transaction receipts included in the block.
block_extensions
Any extensions to this block.
id
The ID of this block (Sha256).
block_num
The height of this block in the chain.
ref_block_prefix
32-bit portion of the block ID used as a reference.

JSON-RPC Request Example

get_block Request
Response Example
get_block Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?