/getBlockHeader - The Open Network (TON)
Example code for the /getBlockHeader json-rpc method. Сomplete guide on how to use /getBlockHeader json-rpc in GetBlock.io Web3 documentation.
Parameters
workchain - query
required, integer
block workchain id
shard - query
required, integer
block shard id
seqno - query
required, integer
block seqno
root_hash - query
optional, string
file_hash - query
optional, string
Request
curl --location --request GET 'https://ton.getblock.io/mainnet//getBlockHeader?workchain=-1&shard=-9223372036854775808&seqno=30497145&root_hash=TqVSpe+5Dxx+RnBdvJ/tJeg13/nAAh9mjR/C+Jy4mmM='
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'Response
Last updated
Was this helpful?