GETGet 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.

Query Parameters
config_idinteger (int32)

Legacy alias for param.

seqnointeger (int32)

Block seqno

paraminteger (int32)

Parameter number. Use param or the legacy config_id alias.

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