tallyvotes - Particl RPC

tallyvotes proposal height_start height_end
Count votes.

Arguments:
1. proposal         (int, required) the proposal id.
2. height_start     (int, required) the chain starting height.
3. height_end       (int, required) the chain ending height.

Result
 {
   "proposal" : n,      (numeric) the proposal id 
   "option" : n,        (numeric) the option marked
   "height_start" : n,  (numeric) the starting chain height
   "height_end" : n,    (numeric) the ending chain height
   "blocks_counted" : n,(numeric) the ending chain height
   "Option x": total, %,(string) the number of votes cast for option x.
 }

Examples:
> particl-cli tallyvotes 1 2000 30000
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "tallyvotes", "params": [1, 2000, 30000] }' -H 'content-type: text/plain;' http://127.0.0.1:51935/


This is a website, created out of frustration with uncomplete and outdated Particl Core RPC documentation online.

Particl version: 0.16.0.1

Note that the RPC is from a regtest node (for completeness), so it includes some additional calls that a regular node doesn't have.


Anon






Mnemonic