cfx_epochNumber
Returns highest epoch number.
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_epochNumber_result)string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
Examples
Request
curl -X POST --data \
'{
"method": "cfx_epochNumber",
"params": [
"0x4350b21"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
"0x4350b21"