Skip to main content

block_results REST API Endpoint

Retrieves block results at a specified height.

Updated on
Nov 7, 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

result
object
The result object which contains the following fields:
height
string
The current blockchain height, indicating this block's position in the chain
txs_results
array
An array containing results of each transaction in the block
code
integer
Execution status of the transaction, with '0' indicating success
data
string
Encoded data payload in the transaction, containing application-specific response details
log
string
JSON-formatted log with details on each event triggered by the transaction
info
string
Detailed log of transaction events
gas_wanted
string
Gas limit set for the transaction
gas_used
string
Actual gas consumed during transaction processing
events
array
An array of events triggered by the transaction
type
string
Type of event, such as 'coin_received' or 'ibc_transfer'
attributes
array
Array of attributes associated with the event
key
string
Key of the attribute, representing a specific aspect of the event
value
string
Value associated with the key, providing details about the event
index
boolean
Indicates whether this attribute is indexed for querying
codespace
string
Namespace for error codes, if applicable
begin_block_events
array
An array of events that occurred at the beginning of the block
type
string
Type of the beginning block event, such as 'coin_received'
attributes
array
Array of attributes related to the beginning block event
key
string
Key of the attribute, indicating the specific aspect of the event
value
string
Value associated with the key, providing details about the event
index
boolean
Indicates if this attribute is indexed for querying
end_block_events
string
Events that occurred at the end of the block, if any
validator_updates
string
Updates to validators at the end of the block, if any
consensus_param_updates
object
Updates to consensus parameters in the block
block
object
Parameters related to block size and gas limit
max_bytes
string
Maximum allowable bytes per block
max_gas
string
Maximum allowable gas per block
evidence
object
Parameters governing evidence handling and lifespan
max_age_num_blocks
string
Maximum age of evidence in terms of blocks
max_age_duration
string
Maximum age of evidence in terms of time duration
max_bytes
string
Maximum byte size for evidence
validator
object
Validator-related parameters
pub_key_types
string
List of supported public key types for validators
version
object
Application version information
app_version
string
Current application version number
Request
1
curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/block_results?height=2698504'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free