Skip to main content

Command

Wallet:​

Add New Wallet:​

safrochaind keys add wallet

Restore executing wallet:​

safrochaind keys add wallet --recover

List All Wallets:​

safrochaind keys list

Delete wallet:​

safrochaind keys delete wallet

Check Balance:​

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

Validator:​

Create Validator:​

safrochaind tx staking create-validator <(cat <<EOF
{
"pubkey": $(safrochaind tendermint show-validator),
"amount": "1000000usaf",
"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 safrochain-1 \
--fees 5000usaf \
--gas auto \
--gas-adjustment 1.5 \
-y

Edit Validator​

safrochaind 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" \
--chain-id safrochain-1 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
-y

Check sync | False -> done.​

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

Delegate:​

safrochaind tx staking delegate $(safrochaind keys show wallet --bech val -a) 1000000000000000000usaf \
--from wallet \
--chain-id safrochain-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
-y

Withdraw rewards and commission:​

safrochaind tx distribution withdraw-rewards $(safrochaind keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id safrochain-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
-y

Unjail:​

safrochaind tx slashing unjail \
--from wallet \
--chain-id safrochain-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
-y

Unbond:​

safrochaind tx staking unbond $(safrochaind keys show wallet --bech val -a) 1000000000000000000usaf \
--from wallet \
--chain-id safrochain-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
-y

Vote:​

safrochaind tx gov vote proposal_id yes \
--from wallet \
--chain-id safrochain-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
-y

System:​

Reload Service:​

sudo systemctl daemon-reload

Enable Service:​

sudo systemctl enable safrochaind

Disable Service:​

sudo systemctl disable safrochaind

Start Service:​

sudo systemctl start safrochaind

Stop Service:​

sudo systemctl stop safrochaind

Restart Service:​

sudo systemctl restart safrochaind

Check Service Status:​

sudo systemctl status safrochaind

Check Service Logs:​

sudo journalctl -u safrochaind -fo cat