Skip to main content
GET
/
getBlockHeader
Get block header metadata
curl --request GET \
  --url https://toncenter.com/api/v2/getBlockHeader
{
  "ok": true,
  "result": {
    "id": {
      "workchain": 123,
      "shard": "<string>",
      "seqno": 123,
      "root_hash": "<string>",
      "file_hash": "<string>",
      "@type": "ton.blockIdExt"
    },
    "global_id": 123,
    "version": 123,
    "gen_utime": 123,
    "@type": "blocks.header",
    "after_merge": true,
    "after_split": true,
    "before_split": true,
    "want_merge": true,
    "want_split": true,
    "validator_list_hash_short": 123,
    "catchain_seqno": 123,
    "min_ref_mc_seqno": 123,
    "is_key_block": true,
    "prev_key_block_seqno": 123,
    "start_lt": "<string>",
    "end_lt": "<string>",
    "prev_blocks": [
      {
        "workchain": 123,
        "shard": "<string>",
        "seqno": 123,
        "root_hash": "<string>",
        "file_hash": "<string>",
        "@type": "ton.blockIdExt"
      }
    ],
    "@extra": "<string>"
  },
  "error": "<string>",
  "code": 123
}

Query Parameters

workchain
integer
required
shard
integer
required
seqno
integer
required
root_hash
string
file_hash
string

Response

Successful Response

ok
boolean
required
result
Result · object

Header information of the specified block.

error
string
code
integer