getConfigParam
https://triport.io/rpc/tonReturns one numbered blockchain configuration cell at a masterchain point.
getConfigParam returns a single numbered TON blockchain configuration cell.
The facade maps config_id to liteServer.getConfigParams and returns the
serialized cell in the same JSON shape used by getConfigAll.
Use this method when the application already knows the parameter number and
does not need the full configuration bag. The captured request asks for
configuration parameter 34; the API does not decode the returned cell into
validator-set fields.
An optional seqno selects historical masterchain state. Availability follows
the chosen liteserver's measured state depth rather than a network-wide archive
guarantee.
Parameters
JSON-RPC params is a by-name object.
Params: object (by-name).
config_idintegerrequiredseqnointegeroptionalResponse
Response fields
| Field | Type | Description |
|---|---|---|
jsonrpc | string | JSON-RPC protocol version. |
id | number or string | Correlates the response with the request. |
result | object | Configuration-parameter result. |
result.config | object | Serialized TON configuration cell. |
result.config.bytes | string | Base64-encoded bag of cells. |
The JSON is copied from the accepted live fixture.
The fixture sanitizer replaces the cell bytes, so the example documents the
wire shape but is not a decodable copy of parameter 34.
Errors
See TON errors for the shared envelope and retention handling.
| Code | Meaning | When it happens |
|---|---|---|
-32602 | Invalid params | config_id is absent or not an integer, seqno is invalid, or params are positional. |
beyond_retention | State unavailable | Historical configuration is below the selected server's retained state window. |
-32601 | Method not found | The method is outside the published read-only catalog. |
401 | Unauthorized | The API key is missing or invalid. |
429 | Rate limited | The ton_read_rpc_heavy budget is exceeded. |
Examples
const response = await fetch("https://triport.io/rpc/ton", {
method: "POST",
headers: { "x-token": process.env.TRIPORT_API_KEY, "Content-Type": "application/json" },
body: JSON.stringify({
jsonrpc: "2.0", id: "config-34", method: "getConfigParam", params: { config_id: 34 },
}),
});
const { result } = await response.json();Notes
config_idandseqnoare JSON numbers; the returned BoC is base64 text.- Pruned liteservers had a measured floor of 86 860 000. A genesis-capable
node is not proof of continuous history;
ls-17had a measured gap. - Named params and batch correlation by
idapply to every TON JSON-RPC call. - No REST gateway, write method, or WebSocket configuration subscription is
available. Related method:
getConfigAll.