跳到主要内容

cfx_getPoSEconomics

Returns accumulate interest rate of the given epoch

Params

(1)

1. epoch_number (required)

(one of)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$

Result

(cfx_getPoSEconomics_result)
distributablePosInterest
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
lastDistributeBlock
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
totalPosStakingTokens
string
Match 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"
}

Endpoint

Params

epoch_number


Request

curl -X POST --data \
'{
"method": "cfx_getPoSEconomics",
"params": [
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://test.confluxrpc.com