setvote - Particl RPC

setvote proposal option height_start height_end
Set voting token.
Wallet will include this token in staked blocks from height_start to height_end.
Set proposal and/or option to 0 to stop voting.
The last added option valid for the current chain height will be applied.

Arguments:
1. proposal            (int, required) The proposal to vote on.
2. option              (int, required) The option to vote for.
3. height_start        (int, required) Start voting at this block height.
3. height_end          (int, required) Stop voting at this block height.

Examples:
> particl-cli setvote 1 1 1000 2000
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setvote", "params": [1, 1, 1000, 2000] }' -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