Skip to main content

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

Get block by hash or number

Updated on
Dec 18, 2024

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 | null

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 | null

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