Skip to main content

consensus_params REST API Endpoint

Retrieves consensus parameters.

Updated on
May 15, 2024

consensus_params REST API Endpoint

Query Parameters

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

Returns

result
object
The result object with the following fields:
block_height
The current block height
consensus_params
object
The consensus_params object which contains the following fields:
block
object
The block object which contains the following fields:
max_bytes
The maximum size of a block in bytes
max_gas
The maximum gas limit for a block
evidence
object
The evidence object which contains the following fields:
max_age_num_blocks
The maximum number of blocks for evidence validity
max_age_duration
The maximum duration for evidence validity in nanoseconds
max_bytes
The maximum size of evidence in bytes
validator
object
The validator object which contains the following fields:
pub_key_types
An array of supported public key types for validators
version
object
The version object which contains the following fields:
app_version
The version of the application
synchrony
object
The synchrony object which contains the following fields:
precision
Precision for synchronization in nanoseconds
message_delay
Delay for message synchronization in nanoseconds
timeout
object
The timeout object which contains the following fields:
propose
Timeout duration for proposing a block in nanoseconds
propose_delta
Propose delta duration in nanoseconds
vote
Timeout duration for voting in nanoseconds
vote_delta
Vote delta duration in nanoseconds
commit
Timeout duration for committing a block in nanoseconds
bypass_commit_timeout
Flag indicating whether commit timeout is bypassed
abci
object
The abci object which contains the following fields:
vote_extensions_enable_height
Height at which vote extensions are enabled
recheck_tx
Flag indicating whether to recheck transaction
Request
1
curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/consensus_params?height=20431584'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free