GETGet block header
https://ton-mainnet.nodit.io/api/v2/getBlockHeaderReturns block metadata without the full transaction list. Includes timestamps, validator info, and references to previous blocks. Intended for block explorers and other use cases that require block information without transactions.
The workchain to query. Use -1 for masterchain (validators, system contracts, config) or 0 for basechain (regular accounts and contracts). Most user transactions happen on workchain 0.
The shard identifier. Masterchain always uses -9223372036854775808. For basechain, shards split and merge dynamically. Use the shards endpoint to discover current shard configuration.
Block sequence number within the specified workchain and shard.
The block's root hash. Together with file_hash, uniquely identifies a block.
The block's file hash. Together with root_hash, uniquely identifies a block.
Returns true if the request succeeded; otherwise false. See the error field for details.
TonLib type identifier for block header objects. Refer to the TonLib type reference for a full list.
Full block identifier including workchain, shard, seqno, and hashes.
TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.
Workchain ID: -1 for masterchain, 0 for basechain.
Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.
Block sequence number within its workchain and shard. For the masterchain (workchain -1), this equals the global block height. For basechain shards (workchain 0), this is the sequence number local to that specific shard, not a global height.
The block's root hash. Together with file_hash, uniquely identifies a block.
Hash of the serialized block file. Together with root_hash, uniquely identifies a block.
Global network ID (-239 for mainnet, -3 for testnet).
Block format version number.
Returns true if this block was created immediately after a shard merge; otherwise false.
Returns true if this block was created immediately after a shard split; otherwise false.
Returns true if this shard will split after this block; otherwise false.
Returns true if validators have signaled a preference to merge this shard; otherwise false.
Returns true if validators have signaled a preference to split this shard; otherwise false.
Short hash of the validator set active during this block.
Catchain sequence number used for validator consensus.
Minimum masterchain block seqno referenced by this block.
Returns true if this is a key block containing validator set changes or config updates; otherwise false.
Sequence number of the previous key block.
Logical time at the start of this block.
Logical time at the end of this block. All transactions in this block have lt between start_lt and end_lt.
Unix timestamp when this block was generated.
Array of previous block identifiers (workchain, shard, seqno, root_hash, file_hash). Usually contains one entry, but two after a shard merge.
TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.
Workchain ID: -1 for masterchain, 0 for basechain.
Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.
Block sequence number within its workchain and shard. For the masterchain (workchain -1), this equals the global block height. For basechain shards (workchain 0), this is the sequence number local to that specific shard, not a global height.
The block's root hash. Together with file_hash, uniquely identifies a block.
Hash of the serialized block file. Together with root_hash, uniquely identifies a block.
Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.