Saltar al contenido principal

cfx_getAccumulateInterestRate

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

Examples

Request

curl -X POST --data \
'{
"method": "cfx_getAccumulateInterestRate",
"params": [
"0x4350b21"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539

Result

"0x3ed5a51a4d43a6b052b5d04f93a"

Endpoint

Params

epoch_number


Request

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