Skip to main content

block_results REST API Endpoint

Retrieves block results at a specified height.

Updated on
May 15, 2024

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 height of the block

txs_results
array

An array containing transaction results

code
integer

The response code of the transaction

data
string

The Base64-encoded data associated with the transaction

log
string

A log containing events related to the transaction

info
string

Additional info about the transaction result

gas_wanted
string

The gas limit specified by the transaction

gas_used
string

The gas consumed by the transaction

codespace
string

The namespace for the code

events
array

An array containing events associated with the transaction. Each event has a type and attributes

type
string

The type of event

attributes
array

An array containing attributes associated with the event

key
string

The key of the attribute

value
string

The value of the attribute

index
boolean

The index of the attribute

validator_updates
array | null

An array of validator updates applied in this block, or null when there are no updates

app_hash
string | null

(Optional) The application hash after processing the block

finalize_block_events
array

(Optional) An array containing events related to finalizing the block

type
string

The type of event

attributes
array

An array containing attributes associated with the event

key
string

The key of the attribute

value
string

The value of the attribute

index
boolean

The index of the attribute

consensus_param_updates
object

(Optional) The Updates to consensus parameters which contains the following fields:

block
object

The parameters related to the block

max_bytes
string

The maximum block size in bytes

max_gas
string

The maximum gas per block

evidence
object

The parameters related to evidence handling

max_age_num_blocks
string

The maximum age of evidence in terms of blocks

max_age_duration
string

The maximum age of evidence in terms of duration

max_bytes
string

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
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free