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 validation 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 phoenix-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=phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \ \
--node=https://terra-rpc.node39.top:443 \
-y

Withdraw rewards and commission:

terrad tx distribution withdraw-rewards $(terrad keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id=phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \ \
--node=https://terra-rpc.node39.top:443 \
-y

Unjail:

terrad tx slashing unjail \
--from wallet \
--chain-id=phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \ \
--node=https://terra-rpc.node39.top:443 \
-y

Unbond:

terrad tx staking unbond $(terrad keys show wallet --bech val -a) 1000000uluna \
--from wallet \
--chain-id=phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \ \
--node=https://terra-rpc.node39.top:443 \
-y

Vote:

terrad tx gov vote proposal_id yes \
--from wallet \
--chain-id=phoenix-1 \
--fees 30000uluna \
--node=https://terra-rpc.node39.top:443 \
-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