Skip to main content

Parameters

chainId
string
default:"toncoin"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getBlockHeader"
required
JSON-RPC method name.
params
object
required
TON block header lookup request.Parameters for getBlockHeader:
  • params.workchain: Block workchain ID. The masterchain uses -1.
  • params.shard: Block shard ID encoded as a signed 64-bit integer string. The masterchain shard is -9223372036854775808.
  • params.seqno: Sequence number of the block to retrieve.
  • params.root_hash: Optional block root hash. Providers may use this to disambiguate or validate the requested block.
  • params.file_hash: Optional block file hash. Providers may use this to disambiguate or validate the requested block.

Returns

result
object
TON block header metadata.