cfx_getPoSEconomics
Returns accumulate interest rate of the given epoch
Params
(1)1. epoch_number (required)
U64
(one of)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
(cfx_getPoSEconomics_result)distributablePosInterest
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
lastDistributeBlock
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
totalPosStakingTokens
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
Example
Request
curl -X POST --data \
'{
"method": "cfx_getPoSEconomics",
"params": [],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
{
"distributablePosInterest": "0x13a4fb2ba032dbe9187ecb",
"lastDistributeBlock": "0x5545f21",
"totalPosStakingTokens": "0x8031e2df8079ce5a61c00000"
}