Skip to main content

Command

Wallet:​

Add New Wallet:​

terrad keys add wallet

Restore executing wallet:​

terrad keys add wallet --recover

List All Wallets:​

terrad keys list

Delete wallet:​

terrad keys delete wallet

Check Balance:​

terrad q bank balances $(terrad keys show wallet -a)

Validator:​

Create Validator:​

terrad tx staking create-validator <(cat <<EOF
{
"pubkey": $(terrad comet show-validator),
"amount": "1000000uluna",
"moniker": "Node39-Guide",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security-contact": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--from wallet \
--chain-id pisco-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y

Edit Validator:​

terrad tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--security-contact "YOUR_SECURITY_EMAIL" \
--commission-rate 0.05 \
--from your-wallet \
--chain-id=pisco-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y

Check sync | False -> done.​

terrad status 2>&1 | jq .SyncInfo.catching_up

Delegate:​

terrad tx staking delegate $(terrad keys show wallet --bech val -a) 1000000uluna \
--from wallet \
--chain-id=pisco-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y

Withdraw rewards and commission:​

terrad tx distribution withdraw-rewards $(terrad keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id=pisco-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y

Unjail:​

terrad tx slashing unjail \
--from wallet \
--chain-id=pisco-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y

Unbond:​

terrad tx staking unbond $(terrad keys show wallet --bech val -a) 1000000uluna \
--from wallet \
--chain-id=pisco-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y

Vote:​

terrad tx gov vote proposal_id yes \
--from wallet \
--chain-id=pisco-1 \
--fees 30000uluna \
-y

System:​

Reload Service:​

sudo systemctl daemon-reload

Enable Service:​

sudo systemctl enable terrad

Disable Service:​

sudo systemctl disable terrad

Start Service:​

sudo systemctl start terrad

Stop Service:​

sudo systemctl stop terrad

Restart Service:​

sudo systemctl restart terrad

Check Service Status:​

sudo systemctl status terrad

Check Service Logs:​

sudo journalctl -u terrad -fo cat