getmasterchainblocksignatures - TON

Example code for the getmasterchainblocksignatures JSON-RPC method. Сomplete guide on how to use getmasterchainblocksignatures JSON-RPC in GetBlock.io Web3 documentation.

This method returns the validator signatures for a specific masterchain block. Use it to verify validator participation in consensus.

Parameters

Parameter
Type
Required
Description

seqno

integer

Yes

Masterchain block sequence number

Request Example

REST (GET):

curl --location --request GET 'https://go.getblock.io/<ACCESS-TOKEN>/getMasterchainBlockSignatures?seqno=45792554' \
--header 'Content-Type: application/json'

JSON-RPC (POST):

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "getMasterchainBlockSignatures",
    "params": {
        "seqno": 45792554
    },
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result.id

object

Block ID for which signatures are returned

result.signatures

array

Array of validator signatures

result.signatures[].node_id_short

string

Short node ID of the signing validator

result.signatures[].signature

string

Validator signature (base64)

Use Cases

  • Auditing validator participation per block

  • Light client and SPV-style verification

  • Validator monitoring and analytics

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

422

Validation Error

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

504

Lite Server Timeout

Upstream TON liteserver timed out

SDK Integration

Last updated

Was this helpful?