Testnet
SEDA
- Chain ID
- Version
- Go
Run these after the install guide, which sets $WALLET, $MONIKER and the chain variables.
Keys and wallet
Add a new key
sedad keys add $WALLETRecover a key
sedad keys add $WALLET --recoverList keys
sedad keys listWallet balance
sedad q bank balances $(sedad keys show $WALLET -a)
Validator
Create a validator
cat > $HOME/validator.json << EOF { "pubkey": $(sedad comet show-validator), "amount": "1000000000000000000aseda", "moniker": "$MONIKER", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.05", "commission-max-rate": "0.20", "commission-max-change-rate": "0.05", "min-self-delegation": "1" } EOF sedad tx staking create-validator $HOME/validator.json --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -yEdit the validator
sedad tx staking edit-validator --new-moniker "$MONIKER" --identity "" --website "" --details "" --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -yUnjail
sedad tx slashing unjail --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -yValidator details
sedad q staking validator $(sedad keys show $WALLET --bech val -a)
Tokens
Withdraw all rewards
sedad tx distribution withdraw-all-rewards --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -yWithdraw commission and rewards
sedad tx distribution withdraw-rewards $(sedad keys show $WALLET --bech val -a) --commission --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -yDelegate to yourself
sedad tx staking delegate $(sedad keys show $WALLET --bech val -a) 1000000000000000000aseda --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -yRedelegate
sedad tx staking redelegate $(sedad keys show $WALLET --bech val -a) <TO_VALOPER> 1000000000000000000aseda --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -yUnbond
sedad tx staking unbond $(sedad keys show $WALLET --bech val -a) 1000000000000000000aseda --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -ySend tokens
sedad tx bank send $WALLET <TO_ADDRESS> 1000000000000000000aseda --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -y
Governance
List proposals
sedad q gov proposalsView a proposal
sedad q gov proposal <ID>Vote
sedad tx gov vote <ID> yes --from $WALLET --chain-id $SEDA_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -y # yes | no | abstain | no_with_veto
Maintenance
Node status
sedad status 2>&1 | jqNode peer address
echo $(sedad comet show-node-id)@$(wget -qO- eth0.me):$SEDA_PORT656Live peers
curl -s localhost:$SEDA_PORT657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"' | paste -sd,Check the validator key
[[ $(sedad q staking validator $(sedad keys show $WALLET --bech val -a) -o json | jq -r .validator.consensus_pubkey.value) = $(sedad comet show-validator | jq -r .key) ]] && echo "match" || echo "MISMATCH"Reset chain data
sedad comet unsafe-reset-all --keep-addr-book --home $HOME/.sedadRemove the node
sudo systemctl stop sedad sudo systemctl disable sedad sudo rm /etc/systemd/system/sedad.service sudo systemctl daemon-reload rm -rf $HOME/.sedad $(which sedad)
Service
Service status
sudo systemctl status sedadFollow logs
sudo journalctl -fu sedad -o catRestart
sudo systemctl restart sedadStop
sudo systemctl stop sedad