Chain ID: atomone-1
| Node Version: v1.1.2
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export ATOMONE_CHAIN_ID="atomone-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
atomoned keys add wallet
Recovery Wallet
atomoned keys add wallet --recover
List All Wallet
atomoned keys list
Delete Wallet
atomoned keys delete wallet
Check Wallet Balance
atomoned q bank balances $(atomoned keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
atomoned tx staking create-validator \
--amount=1000000uatone \
--pubkey=$(atomoned tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$ATOMONE_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1uatone
Edit Validator
atomoned tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$ATOMONE_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1uatone
Check Jailed Reason
atomoned query slashing signing-info $(atomoned tendermint show-validator)
Unjail Validator
atomoned tx slashing unjail --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Token
Withdraw Rewards
atomoned tx distribution withdraw-all-rewards --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Withdraw Rewards with Comission
atomoned tx distribution withdraw-rewards $(atomoned keys show wallet --bech val -a) --commission --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Delegate Tokens to Your Validator
atomoned tx staking delegate $(atomoned keys show wallet --bech val -a) 100000uatone --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Redelegate Tokens to Another Validator
atomoned tx staking redelegate $(atomoned keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000uatone --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Unbond Tokens from Your Validator
atomoned tx staking unbond $(atomoned keys show wallet --bech val -a) 100000uatone --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Send Tokens to Any Wallet
atomoned tx bank send wallet <TO_WALLET_ADDRESS> 100000uatone --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable atomoned
Disable Service
sudo systemctl disable atomoned
Start Service
sudo systemctl start atomoned
Stop Service
sudo systemctl stop atomoned
Restart Service
sudo systemctl restart atomoned
Check Service Status
sudo systemctl status atomoned
Check Service Logs
sudo journalctl -u atomoned -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
atomoned tx gov vote 1 yes --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
List all Proposals
atomoned query gov proposals
Check Vote
atomoned tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $ATOMONE_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uatone -y
Create new Proposal
atomoned tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000uatone \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=1uatone \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.atomone/config/config.toml
Get Validator Info
atomoned status 2>&1 | jq .ValidatorInfo
Get Denom Info
atomoned q bank denom-metadata -oj | jq
Get Sync Status
atomoned status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
atomoned status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(atomoned tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.atomone/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025uatone\"/" $HOME/.atomone/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.atomone/config/config.toml
Reset Chain Data
atomoned tendermint unsafe-reset-all --home $HOME/.atomone --keep-addr-book
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop atomoned && sudo systemctl disable atomoned && sudo rm /etc/systemd/system/atomoned.service && sudo systemctl daemon-reload && sudo rm -rf $(which atomoned) && rm -rf $HOME/.atomone