Saltar al contenido principal

cfx_getBlocksByEpoch

Params

(1)

1. epoch_number (required)

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

Result

(cfx_getBlocksByEpoch_result)
array[string]

Examples

Request

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

Result

[
"0x65edf7f1e1ffec4fd0eca4a2a6efb127b11d887dc7ca522ff75e418fda32d160"
]

Endpoint

Params

epoch_number


Request

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