GET
/
getConfigParam
curl --request GET \
  --url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getConfigParam
{
  "config_id": 123,
  "value": {}
}

The getConfigParam method retrieves a specific configuration parameter from the TON blockchain. This method allows you to access various system-wide settings and parameters that govern the behavior of the TON network.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • config_id (integer, required) — The ID of the configuration parameter to retrieve. Example: 5.

JSON-RPC

Shell
curl -X POST \

  'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/jsonRPC' \

  -H 'Content-Type: application/json' \

  -d '{

    "jsonrpc": "2.0",

    "id": 1,

    "method": "getConfigParam",

    "params": {

      "config_id": 5

    }

  }'

Response

  • config_id (integer) — The ID of the configuration parameter that was requested.
  • value (object) — The value of the configuration parameter. The structure of this object varies depending on the specific parameter requested.

Use case

A possible use case for the getConfigParam method in TON is for applications or services that need to access and utilize system-wide configuration parameters. This method can be used to:

  1. Retrieve network-wide settings for validators, such as minimum stake requirements.
  2. Access global parameters that affect transaction processing or smart contract execution.
  3. Obtain information about the current configuration of the TON network.
  4. Build tools for network analysis and monitoring that require access to system parameters.

Query Parameters

config_id
integer
default:5
required

The ID of the configuration parameter to retrieve

Response

200 - application/json
The requested configuration parameter
config_id
integer

The ID of the configuration parameter

value
object

The value of the configuration parameter