hmy_getEpoch
Description
hmy_getEpoch returns current epoch of shard
Parameters
API v1
Returns
String
- Current requested node shard epoch 0x format
Sample Curl Request
curl -d '{
"jsonrpc": "2.0",
"method": "hmy_getEpoch",
"params": [],
"id": 1
}' -H "Content-Type: application/json" -X POST "https://api.s0.b.hmny.io"
Sample Curl Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xc"
}
API v2
Returns
uint64
- Current requested node shard epoch decimal format
Sample Curl Request
curl -d '{
"jsonrpc": "2.0",
"method": "hmyv2_getEpoch",
"params": [],
"id": 1
}' -H "Content-Type: application/json" -X POST "http://localhost:9500"
Sample Curl Response
{
"jsonrpc": "2.0",
"id": 1,
"result": 10
}
Last updated
Was this helpful?