[Configuration] klay_getChainConfig
Returns the configuration of the chain.
See klay_getParams for the list of parameters.
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: klay_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
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
}
}
}
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "klay_getChainConfig",
"id": 1,
"jsonrpc": "2.0",
"params": [100]
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "klay_getChainConfig",
"id": 1,
"jsonrpc": "2.0",
"params": [
100
]
}'