eth_currentEpoch

Returns current epoch number

Parameters

None

Returns

String - epoch number (HEX-encoded)

Example

Request

curl -H "Content-Type: application/json" \
-d '{"id": 1, "jsonrpc":"2.0", "method": "eth_currentEpoch", "params": []}' \
https://rpc-mainnet.u2u.xyz

Result

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x17146"
}

Last updated