Skip to main content

/lookupBlock REST API Endpoint

Look up block by either seqno, lt or unixtime.

Updated on
Oct 23, 2024

/lookupBlock REST API Endpoint

Query Parameters

workchain
integer
REQUIRED
Identifies the workchain
shard
string
REQUIRED
The shard identifier
seqno
integer
The sequence number of the block
lt
integer
The block's logical time
unixtime
integer
The block's unixtime

Returns

ok
boolean
Indicates that the request was successful
result
object
The result object which contains the following fields:
@type
string
The extended block ID object for the latest block
workchain
integer
Indicates the masterchain
shard
string
The shard identifier within the masterchain
seqno
integer
The sequence number of the latest block
root_hash
string
The root hash of the latest block’s state
file_hash
string
The file hash for the latest block
extra
string
Additional metadata used for internal processing or tracking
Request
1
curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/lookupBlock?workchain=-1&shard=-9223372036854775808&seqno=41146349' \
2
--header 'accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free