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 union-staking create-union-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 safro-testnet-1 \
--fees 5000usaf \
--gas auto \
--gas-adjustment 1.5 \
-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) 1000000000000000000au \
--from wallet \
--chain-id safro-testnet-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 safro-testnet-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
--node=https://safro-rpc.node39.top:443 \
-y

Unjail:

safrochaind tx slashing unjail \
--from wallet \
--chain-id safro-testnet-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
--node=https://safro-rpc.node39.top:443 \
-y

Unbond:

safrochaind tx staking unbond $(safrochaind keys show wallet --bech val -a) 1000000000000000000au \
--from wallet \
--chain-id safro-testnet-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
--node=https://safro-rpc.node39.top:443 \
-y

Vote:

safrochaind tx gov vote proposal_id yes \
--from wallet \
--chain-id safro-testnet-1 \
--gas-adjustment 1.2 \
--gas auto \
--fees 5000usaf \
--node=https://safro-testnet-rpc.node39.top:443 \
-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