governance_chainConfig
The chainConfig property provides the latest chain configuration. This is equivalent to chainConfigAt() with an empty parameter.
NOTE: In versions earlier than Kaia v1.10.0, this API returned the initial chain configuration. However, due to its confusing name, it is updated since Kaia v1.10.0. To query the initial chain configuration, use chainConfigAt(0) instead.
JSONRPC: governance_chainConfig
Request
- application/json
Body
Responses
- 200
Current chain configuration
- application/json
- Schema
- Example (from schema)
Schema
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
code | message | description |
---|---|---|
-32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
Current chain configuration
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"chainId": 1001,
"deriveShaImpl": 2,
"governance": {
"govParamContract": "0x0000000000000000000000000000000000000000",
"governanceMode": "ballot",
"governingNode": "0xe733cb4d279da696f30d470f8c04decb54fcb0d2",
"kip71": {
"basefeedenominator": 20,
"gastarget": 30000000,
"lowerboundbasefee": 25000000000,
"maxblockgasusedforbasefee": 60000000,
"upperboundbasefee": 750000000000
},
"reward": {
"deferredTxFee": true,
"kip82ratio": "20/80",
"minimumStake": 5000000,
"mintingAmount": 6400000000000000000,
"proposerUpdateInterval": 3600,
"ratio": "50/40/10",
"stakingUpdateInterval": 20,
"useGiniCoeff": false
}
},
"istanbul": {
"epoch": 20,
"policy": 2,
"sub": 1
},
"istanbulCompatibleBlock": 0,
"koreCompatibleBlock": 0,
"londonCompatibleBlock": 0,
"magmaCompatibleBlock": 0,
"unitPrice": 25000000000
}
}