Chain ID: soarchaintestnet
| Node Version: v0.2.9
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export SOAR_CHAIN_ID="soarchaintestnet"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
soarchaind keys add wallet
Recovery Wallet
soarchaind keys add wallet --recover
List All Wallet
soarchaind keys list
Delete Wallet
soarchaind keys delete wallet
Check Wallet Balance
soarchaind q bank balances $(soarchaind keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
soarchaind tx staking create-validator \
--amount=1000000utsoar \
--pubkey=$(soarchaind tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$SOAR_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=1utsoar
Edit Validator
soarchaind tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$SOAR_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1utsoar
Check Jailed Reason
soarchaind query slashing signing-info $(soarchaind tendermint show-validator)
Unjail Validator
soarchaind tx slashing unjail --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Token
Withdraw Rewards
soarchaind tx distribution withdraw-all-rewards --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Withdraw Rewards with Comission
soarchaind tx distribution withdraw-rewards $(soarchaind keys show wallet --bech val -a) --commission --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Delegate Tokens to Your Validator
soarchaind tx staking delegate $(soarchaind keys show wallet --bech val -a) 100000utsoar --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Redelegate Tokens to Another Validator
soarchaind tx staking redelegate $(soarchaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000utsoar --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Unbond Tokens from Your Validator
soarchaind tx staking unbond $(soarchaind keys show wallet --bech val -a) 100000utsoar --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Send Tokens to Any Wallet
soarchaind tx bank send wallet <TO_WALLET_ADDRESS> 100000utsoar --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable soarchaind
Disable Service
sudo systemctl disable soarchaind
Start Service
sudo systemctl start soarchaind
Stop Service
sudo systemctl stop soarchaind
Restart Service
sudo systemctl restart soarchaind
Check Service Status
sudo systemctl status soarchaind
Check Service Logs
sudo journalctl -u soarchaind -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
soarchaind tx gov vote 1 yes --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
List all Proposals
soarchaind query gov proposals
Check Vote
soarchaind tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $SOAR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1utsoar -y
Create new Proposal
soarchaind tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000utsoar \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=1utsoar \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.soarchain/config/config.toml
Get Validator Info
soarchaind status 2>&1 | jq .ValidatorInfo
Get Denom Info
soarchaind q bank denom-metadata -oj | jq
Get Sync Status
soarchaind status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
soarchaind status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(soarchaind tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.soarchain/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.0025utsoar\"/" $HOME/.soarchain/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.soarchain/config/config.toml
Reset Chain Data
soarchaind tendermint unsafe-reset-all --home $HOME/.soarchain --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 soarchaind && sudo systemctl disable soarchaind && sudo rm /etc/systemd/system/soarchaind.service && sudo systemctl daemon-reload && sudo rm -rf $(which soarchaind) && rm -rf $HOME/.soarchain