Node CLI Cheatsheet
Wallet Management
Add Wallet Specify the value <wallet>
with your own wallet name
archwayd keys add wallet
Recover Wallet
archwayd keys add wallet --recover
List Wallet
archwayd keys list
Delete Wallet
archwayd keys delete wallet
Check Wallet Balance
archwayd q bank balances $(archwayd keys show wallet -a)
Validator Management
Please adjust <wallet>
, MONIKER
, YOUR_KEYBASE_ID
, YOUR_DETAILS
, YOUUR_WEBSITE_URL
Create Validator (Staking) with 100 EBL
archwayd tx staking create-validator \
--amount 1000000000000000000aarch \
--pubkey $(archwayd tendermint show-validator) \
--moniker "your_moniker" \
--identity "keybase_id" \
--details "" \
--website "" \
--chain-id archway-1 \
--commission-rate 0.1 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas-prices 1000000000000aarch \
--gas auto
-y
Edit Validator
archwayd tx staking edit-validator \
--new-moniker="" \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL"
--chain-id archway-1 \
--from=<wallet> \
--gas-adjustment=1.4 \
--gas auto \
--gas-prices 1000000000000aarch
-y
Unjail Validator
archwayd tx slashing unjail --from wallet --chain-id archway-1 --gas-adjustment=1.4 --gas auto --gas-prices 1000000000000aarch -y
Check Jailed Reason
archwayd query slashing signing-info $(archwayd tendermint show-validator)
Token Management
Withdraw Rewards
archwayd tx distribution withdraw-rewards $(archwayd keys show wallet --bech val -a) --commission --from wallet --chain-id archway-1 --gas-adjustment="1.4" --gas auto --gas-prices 1000000000000aarch -y
Withdraw Rewards with Comission
archwayd tx distribution withdraw-rewards $(archwayd keys show wallet --bech val -a) --commission --from wallet --chain-id archway-1 --gas-adjustment="1.4" --gas auto --gas-prices 1000000000000aarch -y
Delegate Token to your own validator
archwayd tx staking delegate <TO_VALOPER_ADDRESS> 1000000000000000000aarch --from wallet --chain-id archway-1 --gas-adjustment=1.4 --gas auto --gas-prices 1000000000000aarch -y
Unbond Token from your validator
archwayd tx staking unbond $(archwayd keys show wallet --bech val -a) 1000000000000000000aarch --from wallet --chain-id archway-1 --gas-adjustment=1.4 --gas auto --gas-prices 1000000000000aarch -y
Send Token to another wallet
archwayd tx bank send wallet <TO_WALLET_ADDRESS> 1000000aarch --from wallet --chain-id archway-1 --gas-adjustment=1.4 --gas auto --gas-prices 1000000000000aarch -y
Governance
Vote You can change the value of yes
to no
,abstain
,nowithveto
archwayd tx gov vote 1 yes --from wallet --chain-id archway-1 --gas-adjustment=1.4 --gas auto --gas-prices 1000000000000aarch -y
Other
Set Your own Custom Ports
PORT=34
archwayd config node tcp://localhost:${PORT}657
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${PORT}660\"%" $HOME/.archway/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${PORT}317\"%; s%^address = \":8080\"%address = \":${PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${PORT}091\"%; s%^address = \"0.0.0.0:8545\"%address = \"0.0.0.0:${PORT}545\"%; s%^ws-address = \"0.0.0.0:8546\"%ws-address = \"0.0.0.0:${PORT}546\"%" $HOME/.archway/config/app.toml
Enable Indexing usually enabled by default
sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.archway/config/config.toml
Disable Indexing
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.archway/config/config.toml
Reset Chain Data
archwayd tendermint unsafe-reset-all --home $HOME/.archway --keep-addr-book
Delete Node
WARNING! Use this command wisely Backup your key first it will remove Planq
sudo systemctl stop archwayd
sudo systemctl disable archwayd
sudo rm /etc/systemd/system/archwayd.service
sudo systemctl daemon-reload
rm -f $(which archwayd)
rm -rf .archway
rm -rf archway