Parameters
chainId
string
default:"toncoin-testnet"
required
Unique identifier for a blockchain network.
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
default:["finalized"]
required
Parameters for getBlockHeader: [block_id]Positional parameters for getBlockHeader:params[]: Block identifier: “head”, “genesis”, “finalized”, a slot number, or a hex-encoded block root.
Returns
Object containing the requested signed block header and its canonical status.
The block root of the returned header.
Whether this header is part of the canonical chain.
Signed beacon block header.
BLS signature of the block header.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=toncoin-testnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlockHeader",
"params": [
"finalized"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"root": "0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1",
"canonical": true,
"header": {
"message": {
"slot": "123456",
"proposer_index": "42",
"parent_root": "0xparentroot...",
"state_root": "0xstateroot...",
"body_root": "0xbodyroot..."
},
"signature": "0xsignature..."
}
}
}