post https://ckb-mirana.unifra.io/v1/
Returns the epoch with the highest number in the canonical chain.
Pay attention that like blocks with the specific block number may change because of chain reorganization, This RPC may return different epochs which have the same epoch number.
Parameters
- none
Returns
The view of epoch.
Example
Request
curl --location --request POST 'https://ckb-mirana.unifra.io/v1/4fb36720a57340d39aee4cf68511064a' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 42,
"jsonrpc": "2.0",
"method": "get_current_epoch",
"params": []
}'
Result
{
"jsonrpc": "2.0",
"result": {
"compact_target": "0x1911ce98",
"length": "0x3bf",
"number": "0x193f",
"start_number": "0x7ff298"
},
"id": 42
}