Query Parameters
- heightintegerREQUIRED
The height to return. If no height is provided, the latest block info is to be fetched. The default value is 0
Returns
- resultobject
The result object which contains the following fields:
- heightstring
The current blockchain height, indicating this block's position in the chain
- txs_resultsarray
An array containing results of each transaction in the block
- codeinteger
Execution status of the transaction, with '0' indicating success
- datastring
Encoded data payload in the transaction, containing application-specific response details
- logstring
JSON-formatted log with details on each event triggered by the transaction
- infostring
Detailed log of transaction events
- gas_wantedstring
Gas limit set for the transaction
- gas_usedstring
Actual gas consumed during transaction processing
- eventsarray
An array of events triggered by the transaction
- typestring
Type of event, such as 'coin_received' or 'ibc_transfer'
- attributesarray
Array of attributes associated with the event
- keystring
Key of the attribute, representing a specific aspect of the event
- valuestring
Value associated with the key, providing details about the event
- indexboolean
Indicates whether this attribute is indexed for querying
- codespacestring
Namespace for error codes, if applicable
- signersarray
(Optional) Bech32 addresses of transaction signers
- finalize_block_eventsarray
Events emitted during block finalization (replaces legacy begin_block_events / end_block_events on current nodes)
- typestring
Type of the event, such as 'coin_received'
- attributesarray
Array of attributes related to the event
- keystring
Key of the attribute, indicating the specific aspect of the event
- valuestring
Value associated with the key, providing details about the event
- indexboolean
Indicates if this attribute is indexed for querying
- validator_updatesarray | null
Validator set updates at the end of the block, or null when there are none
- consensus_param_updatesobject
Updates to consensus parameters in the block
- blockobject
Parameters related to block size and gas limit
- max_bytesstring
Maximum allowable bytes per block
- max_gasstring
Maximum allowable gas per block
- evidenceobject
Parameters governing evidence handling and lifespan
- max_age_num_blocksstring
Maximum age of evidence in terms of blocks
- max_age_durationstring
Maximum age of evidence in terms of time duration
- max_bytesstring
Maximum byte size for evidence
- validatorobject
Validator-related parameters
- pub_key_typesarray
List of supported public key types for validators
- versionobject
Application version information
- appstring
Application protocol version
- app_versionstring
Current application version number
- app_hashstring | null
(Optional) The application hash after executing the block