POSTGet config parameter

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getConfigParam
CU20

Returns a specific blockchain configuration parameter. TON stores all network settings on-chain as numbered parameters. Common ones: 0 (config contract), 1 (elector), 15 (election timing), 17 (stake limits), 20-21 (gas prices), 34 (current validators). Check TON documentation for the full list.

Request Body
config_idinteger (int32)

Configuration parameter number. Each number controls different blockchain settings. Legacy alias for param; specify exactly one of these fields.

seqnostring

Masterchain block sequence number (block height). Used to query blockchain config at a specific block. If omitted, the latest masterchain block is used.

paramstring

Configuration parameter number. Each number controls different blockchain settings.

Responses
okbooleanrequired

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

@typestring (enum)required

TonLib type identifier for blockchain configuration responses. Refer to the TonLib type reference for a full list.

configobjectrequired

The requested configuration parameter value as a TVM cell.

@typestring (enum)required

TonLib type identifier for TVM cell values. Refer to the TonLib type reference for a full list.

bytesstringrequired

TVM cell data serialized as base64.

@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 POST "https://ton-mainnet.nodit.io/api/v2/getConfigParam" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "configInfo",
    "config": {
      "@type": "tvm.cell",
      "bytes": "te6cckEBAQEAIgAAQFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV+A4W5w=="
    }
  },
  "@extra": "1795684394:7:11.036"
}