GETGet masterchain block signatures

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getMasterchainBlockSignatures
CU30

Returns validator signatures for a specific masterchain block. Each signature proves that a validator approved this block. Use this for building cryptographic proofs or verifying block authenticity in trustless applications.

Query Parameters
seqnointeger (int32)required

Block sequence number within the specified workchain and shard.

Responses
okbooleanrequired

Returns true if the request succeeded; otherwise false. See the error field for details.

resultoneOfrequired

Response data. Present only when ok is true.

object 1object
@typestring (enum)required

TonLib type identifier for block signature collections. Refer to the TonLib type reference for a full list.

idobjectrequired

Full block identifier for the signed block.

@typestring (enum)required

TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.

workchainintegerrequired

Workchain ID: -1 for masterchain, 0 for basechain.

shardstringrequired

Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.

seqnointegerrequired

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.

root_hashstringrequired

Root hash of the block. Together with file_hash, uniquely identifies a block.

file_hashstringrequired

Hash of the serialized block file. Together with root_hash, uniquely identifies a block.

signaturesobject[]required

Array of validator signatures for this block. Each entry contains the validator's short node ID (base64 hash) and their Ed25519 signature (base64).

@typestring (enum)required

TonLib type identifier for validator signature objects. Refer to the TonLib type reference for a full list.

node_id_shortstringrequired

Short public key hash of the validator node that produced this signature.

signaturestringrequired

Ed25519 signature of the block by this validator, base64 encoded.

object 2object
@typestring (enum)required

TonLib type identifier for block signature collections produced by the simplex consensus. Always blocks.blockSignatures.simplex.

idobjectrequired

A complete block identifier with cryptographic hashes. Contains workchain, shard, seqno (position) plus root_hash and file_hash (verification).

@typestring (enum)required

TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.

workchainintegerrequired

Workchain ID: -1 for masterchain, 0 for basechain.

shardstringrequired

Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.

seqnointegerrequired

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.

root_hashstringrequired

Root hash of the block. Together with file_hash, uniquely identifies a block.

file_hashstringrequired

Hash of the serialized block file. Together with root_hash, uniquely identifies a block.

signaturesobject[]required

Array of validator signatures for this block. Each entry contains the short node ID of the validator (base64 hash) and its Ed25519 signature (base64).

@typestring (enum)required

TonLib type identifier for validator signature objects. Refer to the TonLib type reference for a full list.

node_id_shortstringrequired

Short public key hash of the validator node that produced this signature.

signaturestringrequired

Ed25519 signature of the block by this validator, base64 encoded.

session_idstringrequired

A 256-bit hash value. Accepts either hex format (64 characters) or base64 format (44 characters). Used for block hashes, transaction hashes, and cryptographic proofs.

slotinteger (int32)required

Slot number of the simplex consensus in which the block candidate was signed.

candidatestringrequired

Binary data encoded as base64. Used for serialized cells (BoC format), message bodies, and smart contract code/data.

@extrastring

Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v2/getMasterchainBlockSignatures?seqno=107892772" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "blocks.blockSignatures.simplex",
    "id": {
      "@type": "ton.blockIdExt",
      "workchain": -1,
      "shard": "-9223372036854775808",
      "seqno": 107892772,
      "root_hash": "CZ71j2Ea/GLWj3Nc4qYFjHwU5WKnoR6a8OucP1StF/s=",
      "file_hash": "EgSbEso6FAMwFTf3B3yI1KeEu6cu2JNiwr/yWJWlKgc="
    },
    "signatures": [
      {
        "@type": "blocks.signature",
        "node_id_short": "XYYir/ihg7763gzmcw4CxcYqqGjdBljeGx2lZnieU+k=",
        "signature": "yczEwmIN81M2g39GJGaqOiN4kL+rt5CE1ZHt0ARCTWxEt4i5F/YBYCeRq8z2xUxMDOOCnqv/XyfOcBmeRUz2Dg=="
      },
      {
        "@type": "blocks.signature",
        "node_id_short": "lyYzkI/e5MhQNFDpR71N1I+TQTpmju2Ya9pt5Rr0+3I=",
        "signature": "hwsoO058hyxgeXGN5e8DeGpUg/np3ySkVFJ1UjZYnl462Ry+Q/xiwqYHWAGkyfyrY6p6GlU3+U/yxd7h2hrzBg=="
      }
    ],
    "session_id": "aDLFVO1R0BUMIZoFKjqh3/MlXAUiObjU6Tk/F1b7X1c=",
    "slot": 214,
    "candidate": "3Lz56P////8AAAAAAAAAgCRQbgYJnvWPYRr8YtaPc1zipgWMfBTlYqehHprw65w/VK0X+xIEmxLKOhQDMBU39wd8iNSnhLunLtiTYsK/8liVpSoHkFNgegHOMAA5Uze+/+7F2dyRc1kG32JZCMJB3ZnjywrxmksaP82RttUAAADnDyASRbeAagMLM83viU1Oblo69/qy..."
  },
  "@extra": "1795684357:_:0.003:c"
}