TriportRPC

getConfigAll

POSThttps://triport.io/rpc/ton

Returns all available blockchain configuration cells at a masterchain point.

TON mainnetton:rpcfree+; ton_read_rpc_heavy: 15 / 20 / 100 / 250 RPS (free / basic / pro / business; default, unmeasured)

getConfigAll returns the available blockchain configuration encoded as a TON cell. With no seqno, the facade reads configuration at the liteserver's current masterchain point. Supplying seqno asks for historical state.

Use this method when multiple configuration parameters must be decoded from one cell. Use getConfigParam when only one numbered parameter is needed; it maps a single config_id to the underlying liteserver configuration request.

The returned cell is serialized, not expanded into application-level configuration fields. Historical reads depend on the selected server's state window and can fail even when a different node can answer the same sequence.

Parameters

JSON-RPC params is a by-name object.

Params: object (by-name).

seqnointegeroptional
Non-negative masterchain sequence number; omit for current configuration.

Response

Response fields

FieldTypeDescription
jsonrpcstringJSON-RPC protocol version.
idnumber or stringCorrelates the response with the request.
resultobjectConfiguration result.
result.configobjectSerialized TON configuration cell.
result.config.bytesstringBase64-encoded bag of cells.

The JSON is copied from the accepted live fixture. The fixture sanitizer replaces config.bytes; use the value only to understand the envelope and base64 representation, not as a real configuration payload.

Errors

See TON errors for the shared envelope and retention handling.

CodeMeaningWhen it happens
-32602Invalid paramsseqno is negative or malformed, or params is not a named object.
beyond_retentionState unavailableThe selected liteserver has no configuration state at the requested seqno.
-32601Method not foundThe method is outside the published read-only catalog.
401UnauthorizedThe API key is missing or invalid.
429Rate limitedThe 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", method: "getConfigAll", params: {} }),
});
const { result } = await response.json();

Notes

  • Configuration cell decoding is a client responsibility; the JSON facade preserves the serialized BoC form.
  • Pruned liteservers had a measured floor of 86 860 000. Two nodes answered from genesis, but ls-17 had a measured continuity gap.
  • Batches are matched by id, not response order. TON has no public gateway, write, or WebSocket configuration surface in this product.
  • Related methods: getConfigParam and getMasterchainInfo.