governance_votes
The votes returns the votes from all nodes in the epoch. These votes are gathered from the header of each block.
JSONRPC: governance_votes
Request
- application/json
Body
method stringrequired
Default value: governance_votes
Method name
id int64required
Default value: 1
Request ID, Random or Auto incrementation
jsonrpc stringrequired
Default value: 2.0
JSON-RPC Version (2.0)
params array
Responses
- 200
Return current votes composed of keys, values and node addresses
- application/json
- Schema
- Example (from schema)
Schema
jsonrpc stringrequired
Default value: 2.0
id int64required
error
object
result
object[]
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": [
{
"key": "reward.minimumstake",
"validator": "0xe733cb4d279da696f30d470f8c04decb54fcb0d2",
"value": "5000000"
},
{
"key": "reward.useginicoeff",
"validator": "0xa5bccb4d279419abe2d470f8c04dec0789ac2d54",
"value": false
}
]
}
- curl
- python
- nodejs
- java
- CURL
curl -L -X POST 'http://localhost:8551/governance/votes' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"method": "governance_votes",
"id": 1,
"jsonrpc": "2.0",
"params": [
null
]
}'
ResponseClear