Skip to main content

block_results REST API Endpoint

Retrieves block results at a specified height.

Updated on
May 15, 2024

block_results REST API Endpoint

Query Parameters

height
integer
REQUIRED
The height to return. If no height is provided, the latest block info is to be fetched. The default value is 0

Returns

height
The height of the block
txs_results
array
An array containing transaction results
data
The Base64-encoded data associated with the transaction
log
A log containing events related to the transaction
events
array
An array containing events associated with the transaction. Each event has a type and attributes
type
The type of event
attributes
The attributes associated with the event
key
The key of the attribute
value
The value of the attribute
index
The index of the attribute
total_gas_used
The total gas used,
finalize_block_events
array
An array containing events related to finalizing the block
type
The type of event
attributes
array
An array containing attributes associated with the event
key
The key of the attribute
value
The value of the attribute
index
The index of the attribute
consensus_param_updates
object
The Updates to consensus parameters which contains the following fields:
block
object
The parameters related to the block
max_bytes
The maximum block size in bytes
max_gas
The maximum gas per block
evidence
object
The parameters related to evidence handling
max_age_num_blocks
The maximum age of evidence in terms of blocks
max_age_duration
The maximum age of evidence in terms of duration
max_bytes
The maximum size of evidence in bytes
validator
object
The parameters related to validators
pub_key_types
The types of public keys supported by validators
version
The information about the version
Request
1
curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/block_results?height=20431584'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free