API Reference

cfx_epochNumber - Conflux

Returns the epoch number corresponding to the given tag.

Parameters

  • TAG - (optional, default: "latest_mined") String "latest_mined", "latest_state", "latest_confirmed", "latest_checkpoint" or "earliest", see the epoch number parameter.

Returns

QUANTITY - The integer epoch number corresponding to the given tag.


Example

Request

curl -X POST \
--data '{"jsonrpc":"2.0","method":"cfx_epochNumber","params":[ "latest_mined"],"id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577 


Result

{
    "jsonrpc": "2.0",
    "result": "0x31ee49e",
    "id": 0
}
Language
URL
Click Try It! to start a request and see the response here!