getConfigParam
TON / https://triport.io/rpc/ton
Minimum tier: Pro
Last updated:
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
| Name | Type | Required | Description |
|---|---|---|---|
| config_id | integer | Yes | |
| seqno | Seqno | No |
Returns
| Field | Type |
|---|---|
| result | ConfigInfo |
Examples
curl https://triport.io/rpc/ton \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"getConfigParam","params":["<config_id>","<seqno>"]}'const res = await fetch("https://triport.io/rpc/ton", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "getConfigParam",
"params": [
"<config_id>",
"<seqno>"
]
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/rpc/ton",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"getConfigParam","params":["<config_id>","<seqno>"]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: TON.
- Clusters: mainnet.
- Credit cost: 5 per call.
FAQ
- What does getConfigParam do?
- Returns one numbered blockchain configuration cell at a masterchain point.
- How many credits does getConfigParam cost?
- getConfigParam costs 5 credit(s) per call on Triport by default.
- Is getConfigParam available over WebSocket?
- getConfigParam is an HTTP JSON-RPC method.