GetAllStakeNodeList
Query the list of stake nodes
Parameter​
- none
{
"id":"1",
"jsonrpc":"2.0",
"params":{}
}
Response​
code: Return value number
- 0 success
- -1 peerlist is empty
message: return message
version: version
list: stake list
- addr: address
- ip: Node ip address
- identity: Account public key
- logo: node logo
- name: node name
{
"id": "1",
"jsonrpc": "2.0",
"method": "GetAllStakeNodeList",
"result": {
"code": 0,
"list": {
"list": [
{
"addr": "0x01921896D8AAC12B19BC8413135907AB5aE82326",
"height": "590",
"identity": "MCowBQYDK2VwAyEAnkb8f/5s/LsQXNlU7/SDXR2sPf8IZZrbZ9v2HmYJffk=",
"ip": "192.168.1.86",
"version": "1_1.0.0_d"
},
{
"addr": "0x0796B6DB27e5eb1e9F8Bd2c4d03191C902D22F0f",
"height": "590",
"identity": "MCowBQYDK2VwAyEAHDoLfSX+ygmvSICr/1Q/UnfLlPFkAQBB4oPZne/SoVo=",
"ip": "192.168.1.118",
"version": "1_1.0.0_d"
},
......
],
"message": "success",
"version": "1_1.0.0_d"
},
"message": "success"
}
}
Example​
curl http://localhost:41517/GetAllStakeNodeList -X POST -H "Content-Type: application/json" -d '
{
"id":"1",
"jsonrpc":"2.0",
"params":{}
}
'