get_block_info

The get_block_info method retrieves concise information about a specific block on the EOS blockchain. It returns a smaller subset of block details compared to get_block, including block number, producer, timestamp, and transaction counts.

Example use cases:

Fetching Specific Block Details
Developers and users may utilize the get_block_info method to gather information about a particular block, aiding in debugging or validating blockchain states and transactions.

Block Verification
Validators and network participants can employ this method to verify the integrity and authenticity of a block, ensuring the security and reliability of the network.

Data Analysis and Chain Exploration
Blockchain analysts and enthusiasts might use get_block_info to study block patterns and transaction activities, gaining insights into the network’s operations and behaviors.


Parameters

The getBlockInfo method requires the following parameter in the request body:

parameter
type
description
blockNumOrId
string
Provide either a block number or a block ID.

Return Object

The method returns an object containing concise block information.

field
description
block_num
The block number.
ref_block_num
The reference block number.
id
The ID of the block.
timestamp
The timestamp when the block was produced.
producer
The name of the block producer.
confirmed
The number of confirmed transactions in the block.
previous
The ID of the previous block.
transaction_mroot
The Merkle root of the transactions in the block.
action_mroot
The Merkle root of the actions in the block.
schedule_version
The producer schedule version.
producer_signature
The signature of the block producer.
ref_block_prefix
The reference block prefix.

JSON-RPC Request Example

get_block_info Request
Response Example
get_block_info Response

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