hmy_getLeader

Description

hmy_getLeader returns one address of current shard leader node

Returns

  • String - returns one address of current shard leader node
Sample Curl Request
1
curl -d '{
2
"jsonrpc": "2.0",
3
"method": "hmy_getLeader",
4
"params": [],
5
"id": 1
6
}' -H 'Content-Type:application/json' -X POST 'http://api.s0.b.hmny.io'
Copied!
Sample Curl Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "one1pdv9lrdwl0rg5vglh4xtyrv3wjk3wsqket7zxy"
5
}
Copied!
Last modified 1yr ago
Export as PDF
Copy link