how-to-vote
This document will introduce the complete process of voting.
Create an account
If you have already created an account, please skip this step.
In this step, your identity information will be stored in the corresponding management contract, which will manage your account, keys, and metadata. You need to use the createAccount command to perform the above operations. For more details about the createAccount command, please refer to here.
./marker createAccount --rpcaddr http://127.0.0.1:7445 --name "validator" --keystore ./UTC--2022-07-01T04-02-22.985282926Z--078f684c7d3bf78bdbe8bef93e56998442dc8099
INFO [07-01|05:54:37.048] Create account func=createAccount address=0x078F684c7d3bf78BDbe8bEf93E56998442dc8099 name=validator
INFO [07-01|05:54:37.048] === create Account ===
INFO [07-01|05:54:37.056] TxInfo func=sendContractTransaction TX data nonce =0 gasLimit =4,500,000 gasPrice =101,000,000,000 chainID =29088
INFO [07-01|05:54:37.057] Please waiting func=getResult txHash =0xbd9603b438fa5b98b894431111c6298605d47a12c8b508458482aa865f2d707c
INFO [07-01|05:54:42.082] Transaction Success func=queryTx block Number=360,085
INFO [07-01|05:54:42.083] === setName name ===
INFO [07-01|05:54:42.090] TxInfo func=sendContractTransaction TX data nonce =1 gasLimit =4,500,000 gasPrice =101,000,000,000 chainID =29088
INFO [07-01|05:54:42.091] Please waiting func=getResult txHash =0x8c68f99e1c7216a12d3e2ea12d293d150d94c2e0d0136504860e0f86c87cf77c
INFO [07-01|05:54:47.117] Transaction Success func=queryTx block Number=360,086
INFO [07-01|05:54:47.117] === setAccountDataEncryptionKey ===
INFO [07-01|05:54:47.125] TxInfo func=sendContractTransaction TX data nonce =2 gasLimit =4,500,000 gasPrice =101,000,000,000 chainID =29088
INFO [07-01|05:54:47.126] Please waiting func=getResult txHash =0xed401e84bf7759f2559ba8d97bcee09bb2128cbfb798f3751a427a640944f60d
INFO [07-01|05:54:52.152] Transaction Success func=queryTx block Number=360,087Locking
If you have already locked enough MAP to vote, please skip this step.
You need to use the lockedMAP command to perform the above operation. For more details about the lockedMAP command, please refer to here.
Voting
When you reach this step, you can vote for your favorite validators. You can use the getTotalVotesForEligibleValidators command to view all current validators and their votes.
Let's proceed to vote for the validator (0x078F684c7d3bf78BDbe8bEf93E56998442dc8099).
Once you have voted, your vote will be in a pending state. At the end of the current epoch, the selected validator will be automatically activated along with their associated pending votes.
Last updated