Skip to main content

block_by_hash REST API Endpoint

Retrieves a block by hash.

Updated on
May 15, 2024

block_by_hash REST API Endpoint

Query Parameters

hash
string
REQUIRED
The block hash

Returns

result
object
The result object which contains the following fields:
block_id
object
The block_id object which contains the information about the block's ID
hash
The hash of the block
parts
object
The parts object which contains the information about the parts of the block
total
The total number of parts
hash
The hash of the parts
block
object
The block object which contains the following fields:
header
object
The header object which contains the information about the block header
version
object
The version of the block and the application
block
The block version
app
The application version
chain_id
The ID of the blockchain
height
The height of the block
time
The time at which the block was created
last_block_id
object
The last_block_id object which contains the information about the last block's ID
hash
The hash of the last block
parts
The parts object which contains the information about the parts of the last block
total
The total number of parts of the last block
hash
The hash of the parts of the last block
last_commit_hash
The hash of the last commit
data_hash
The hash of the block's data
validators_hash
The hash of the validators
next_validators_hash
The hash of the next validators
consensus_hash
The hash of the consensus
app_hash
The hash of the application
last_results_hash
The hash of the last results
evidence_hash
The hash of the evidence
proposer_address
The address of the proposer
data
object
The data object which contains the following fields:
txs
array
An array of transactions
evidence
array
An array of evidence which contains the following fields:
type
The type of evidence
height
The height of the evidence
time
The time of the evidence
total_voting_power
The total voting power associated with the evidence
validator
object
The validator object which gives the information about the validator associated with the evidence
pub_key
The public key of the validator
type
The type of public key
value
The value of public key
voting_power
The voting power of the validator
address
The address of the validator
last_commit
object
The last_commit object which provide the information about the last commit
height
The height of the last commit
round
The round of the last commit
block_id
object
The block_id object which provide the information about the ID of the last commit's block
hash
The hash of the last commit's block
parts
object
The parts object which provide the information about the parts of the last commit's block
total
The total number of parts of the last commit's block
hash
The hash of the parts of the last commit's block
signatures
array
An array of signatures which contains the following fields:
block_id_flag
The flag for the block ID
validator_address
The address of the validator who created this signature
timestamp
The timestamp of the signature
signature
The signature
Request
1
curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/block_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free