Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt

Use this file to discover all available pages before exploring further.

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.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=toncoin \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "getBlockHeader",
    "params": {
      "workchain": -1,
      "shard": "-9223372036854775808",
      "seqno": 39064985
    }
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}