[Gas] klay_maxPriorityFeePerGas
Returns a recommended maxPriorityFeePerGas for a new transaction.
- Before Magma, returns the fixed UnitPrice
- After Magma, returns zero
- After Kaia, returns zero if network is uncongested (i.e. next baseFee at its lower bound), otherwise 60% percentile effective tip from previous 20 blocks (under default setting)
JSONRPC: klay_maxPriorityFeePerGas
Request
- application/json
Body
params array
Responses
- 200
Recommended maxPriorityFeePerGas in kei.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result hex
Recommended maxPriorityFeePerGas in kei.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": "0xAE9F7BCC00"
}
- 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_maxPriorityFeePerGas",
"id": 1,
"jsonrpc": "2.0",
"params": []
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "klay_maxPriorityFeePerGas",
"id": 1,
"jsonrpc": "2.0",
"params": [
null
]
}'
ResponseClear