Statistics
Voting Statistics API Endpoints.
/statistics/:id
GET
http://localhost:4003/api/statistics/:id
Returns statistical information of selected proposal.
Path Parameters
Name
Type
Description
id
string
Create Proposal Id
{
"data": {
"address": "ANBkoGqWeTSiaEVgVzSKZd3jS7UWzv9PSo",
"publicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
"status": "VOTING_IN_PROGRESS",
"allVoters": "734909200000000",
"agreed": {
"amount": "489861200000000",
"percentage": 66.656
},
"disagreed": {
"amount": "245048000000000",
"percentage": 33.343999999999994
}
}
}
Curl Example
curl http://localhost:4003/api/statistics/fe8419bda6525ef0074e733dbd3e8b671267c6c8d51b025fd7ae0812947cec30
Last updated
Was this helpful?