Skip to main content
POST
/
api
/
v2
/
getConfigParam
Get config parameter
curl --request POST \
  --url https://toncenter.com/api/v2/getConfigParam \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "config_id": "<string>",
  "seqno": "<string>"
}
'
{
  "ok": true,
  "result": {
    "@type": "configInfo",
    "config": {
      "@type": "tvm.cell",
      "bytes": "<string>"
    }
  },
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
config_id
required

Configuration parameter number. Each number controls different blockchain settings.

seqno

Block or wallet sequence number. For blocks, this is the block height. For wallets, increment this for each outgoing transaction.

Response

OK

Response containing the requested configuration parameter.

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
object
required

The response data. Only present when ok is true.

@extra
string

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.