Skip to main content

/api/v1/blocks/{hashOrNumber} REST API Endpoint

Get block by hash or number

Updated on
Aug 23, 2024

/api/v1/blocks/{hashOrNumber} REST API Endpoint

Please note that this method is currently available only on the testnet and will be accessible on the mainnet soon.

Path Parameters

hashOrNumber
string
REQUIRED
Accepts both eth and hedera hash format or block number

Returns

count
integer
The number of transactions included in the block
hapi_version
string
The version of the Hedera API used
hash
string
The cryptographic hash of the block
name
string
The name of the file containing the block data
number
integer
The block number
previous_hash
string
The cryptographic hash of the previous block
size
integer
The size of the block in bytes
timestamp
object
An object indicating the time range during which the block was created
from
string
The starting timestamp of the block
to
string
The ending timestamp of the block
gas_used
integer
The amount of gas used by the transactions in the block
logs_bloom
string
The logs bloom filter for the block
Request
1
curl 'https://docs-demo.hedera-mainnet.quiknode.pro/api/v1/blocks/77'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free