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 height of the block
- txs_resultsarray
An array containing transaction results
- codeinteger
The response code of the transaction
- datastring
The Base64-encoded data associated with the transaction
- logstring
A log containing events related to the transaction
- infostring
Additional info about the transaction result
- gas_wantedstring
The gas limit specified by the transaction
- gas_usedstring
The gas consumed by the transaction
- codespacestring
The namespace for the code
- eventsarray
An array containing events associated with the transaction. Each event has a type and attributes
- typestring
The type of event
- attributesarray
An array containing attributes associated with the event
- keystring
The key of the attribute
- valuestring
The value of the attribute
- indexboolean
The index of the attribute
- validator_updatesarray | null
An array of validator updates applied in this block, or null when there are no updates
- app_hashstring | null
(Optional) The application hash after processing the block
- finalize_block_eventsarray
(Optional) An array containing events related to finalizing the block
- typestring
The type of event
- attributesarray
An array containing attributes associated with the event
- keystring
The key of the attribute
- valuestring
The value of the attribute
- indexboolean
The index of the attribute
- consensus_param_updatesobject
(Optional) The Updates to consensus parameters which contains the following fields:
- blockobject
The parameters related to the block
- max_bytesstring
The maximum block size in bytes
- max_gasstring
The maximum gas per block
- evidenceobject
The parameters related to evidence handling
- max_age_num_blocksstring
The maximum age of evidence in terms of blocks
- max_age_durationstring
The maximum age of evidence in terms of duration
- max_bytesstring
The maximum size of evidence in bytes
- validatorobject
The parameters related to validators
- pub_key_types
The types of public keys supported by validators
- version
The information about the version