[Configuration] kaia_getChainConfig
Returns the chain configuration at the given block number.
See kaia_getParams for the list of parameters.
NOTE: The block number can be larger than the latest block number, in which case the API returns the tentative value based on the current chain state. The future kaia parameters are subject to change via additional governance votes or GovParam contract state changes.
NOTE: If the requested block has Kore hardfork enabled, the value of governance.reward.useGiniCoeff
will be false
because all council members have an equal chance of being elected as a block proposer and thus Gini coefficient is not relevant.
NOTE: If the requested block has Randao hardfork enabled, the value of governance.reward.proposerUpdateInterval
will be 1
because proposers are no longer selected at batch.
NOTE: If the requested block has Kaia hardfork enabled, the value of governance.reward.stakingUpdateInterval
will be 1
because staking information is every block, effectively deprecating the interval.
JSONRPC: kaia_getChainConfig
Request
- application/json
Body
Array [
- IntegerBlockNumber
- HexadecimalBlockNumber
- BlockTag
]
params
object[]
required
oneOf
the block number with type integer
number
the block number with type hexadecimal
string
the block tag [latest, pending, earliest]
string
Responses
- 200
The chain configuration of the chain.
- 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.).
result
object
governance
object
kip71
object
reward
object
istanbul
object
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"chainId": 1001,
"istanbulCompatibleBlock": 75373312,
"londonCompatibleBlock": 80295291,
"ethTxTypeCompatibleBlock": 86513895,
"magmaCompatibleBlock": 98347376,
"koreCompatibleBlock": 111736800,
"kip103CompatibleBlock": 119145600,
"kip103ContractAddress": "0xd5ad6d61dd87edabe2332607c328f5cc96aecb95",
"istanbul": {
"epoch": 604800,
"policy": 2,
"sub": 22
},
"unitPrice": 25000000000,
"deriveShaImpl": 2,
"governance": {
"governingNode": "0x99fb17d324fa0e07f23b49d09028ac0919414db6",
"governanceMode": "single",
"govParamContract": "0x0000000000000000000000000000000000000000",
"reward": {
"mintingAmount": 9600000000000000000,
"ratio": "34/54/12",
"kip82ratio": "20/80",
"useGiniCoeff": true,
"deferredTxFee": true,
"stakingUpdateInterval": 86400,
"proposerUpdateInterval": 3600,
"minimumStake": 5000000
},
"kip71": {
"lowerboundbasefee": 25000000000,
"upperboundbasefee": 750000000000,
"gastarget": 30000000,
"maxblockgasusedforbasefee": 60000000,
"basefeedenominator": 20
}
}
}
}