/wallet/getchainparameters¶
Get the current values of all chain parameters.
- Source:
framework/src/main/java/org/tron/core/services/http/GetChainParametersServlet.java - Method:
GET/POST - Response:
protocol.ChainParameters
Request parameters¶
GET and POST read visible from the URL query; the servlet does not parse the POST body. int64_as_string is honored only on GET by RateLimiterServlet.
| Field | Method | Type | Required | Description |
|---|---|---|---|---|
visible |
GET / POST | bool | No | Output format; the default is false |
int64_as_string |
GET | bool | No | When true, serializes int64 parameter values as JSON strings |
Example:
curl --request POST \
--url https://nile.trongrid.io/wallet/getchainparameters \
--header 'accept: application/json'
Response¶
| Field | Type | Description |
|---|---|---|
chainParameter |
repeated | List of chain-parameter key/value pairs |
The parameter key corresponds to the parameter index settable via proposals (e.g., getMaintenanceTimeInterval, getEnergyFee).
Response example (Nile, first 8 entries; full list has 75 entries):
{
"chainParameter": [
{ "key": "getMaintenanceTimeInterval", "value": 1800000 },
{ "key": "getAccountUpgradeCost", "value": 9999000000 },
{ "key": "getCreateAccountFee", "value": 100000 },
{ "key": "getTransactionFee", "value": 1000 },
{ "key": "getAssetIssueFee", "value": 1024000000 },
{ "key": "getWitnessPayPerBlock", "value": 8000000 },
{ "key": "getWitnessStandbyAllowance", "value": 100000000 },
{ "key": "getCreateNewAccountFeeInSystemContract", "value": 1000000 }
/* ... remaining parameters */
]
}
Error responses¶
| Method | Trigger | Response |
|---|---|---|
| GET / POST | Request body exceeds node.http.maxMessageSize |
Usually HTTP 413 Payload Too Large when rejected by SizeLimitHandler |
| GET / POST | Internal node error (failed to read DynamicProperties) | {"Error": "<exceptionClass> : <message>"} |