Vote

Introduction about vote commands.

Vote

You must lock enough MAP into the lockedGold contract in advance and register your information into the contract.

Decrements the number of total and the number of nonvoting corresponding to your previously registered account in the LockedGold contract.

Increments the number of total and pending votes for validator in the Election contract.

USAGE
  $ ./marker vote

OPTIONS
  --keystore                                                   your keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --target                                                     Your target validator address
  
  --voteNum                                                    Your number of votes

                                                                                                            
EXAMPLES:
./marker vote
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--target "0x81f02fd21657df80783755874a92c996749777bf"
--voteNum 10000


RESPONSE:
success
or
Failed

quicklyVote

If you have not creat Account or locked the Map, you can quickly vote through the quicklyVote command, which integrates the createAccount lockedMAP

Please note that you can only use this command once. No matter whether the command succeeds or fails, this command only packs and combines createAccount lockedMAP commands and does not have the nature of reuse.

Activate

Activate pending votes in validator elections to begin earning rewards. To earn rewards as a voter, it is required to activate your pending votes at some point after the end of the epoch in which they were made.

That means converts account's pending votes for validator to active votes.

RevokePending

Revokes value pending votes for validator.

This command will put the voting MAP turn into nonvoting MAP.

Increments the number of total and the number of nonvoting corresponding to your previously registered account in the LockedGold contract.

Decrements the number of total and pending votes for validator in the Election contract.

RevokeActive

Revokes value active votes for validator

This command will put the voting MAP turn into nonvoting MAP.

Increments the number of total and the number of nonvoting corresponding to your previously registered account in the LockedGold contract.

Decrements the number of total and active votes for validator in the Election contract.

Last updated

Was this helpful?