Usefull Commands

Service operations ⚙️

Check logs

sudo journalctl -u galacticad -f

Start service

sudo systemctl start galacticad

Stop service

sudo systemctl stop galacticad

Restart service

sudo systemctl restart galacticad

Check service status

sudo systemctl status galacticad

Reload services

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable galacticad

Disable Service

sudo systemctl disable galacticad

Sync info

galacticad status 2>&1 | jq .SyncInfo

Node info

galacticad status 2>&1 | jq .NodeInfo

Your node peer

echo $(galacticad tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.galactica/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Key management

Add New Wallet

galacticad keys add $WALLET

Restore executing wallet

galacticad keys add $WALLET --recover

List All Wallets

galacticad keys list

Delete wallet

galacticad keys delete $WALLET

Check Balance

galacticad q bank balances $(galacticad keys show $WALLET -a)

Export Key (save to wallet.backup)

galacticad keys export $WALLET

View EVM Prived Key

galacticad keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

galacticad keys import $WALLET wallet.backup

Tokens

Withdraw all rewards

galacticad tx distribution withdraw-all-rewards --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet

Withdraw rewards and commission from your validator

galacticad tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

Check your balance

galacticad query bank balances $WALLET_ADDRESS

Delegate to Yourself

galacticad tx staking delegate $(galacticad keys show $WALLET --bech val -a) 1000000agnet --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

Delegate

galacticad tx staking delegate <TO_VALOPER_ADDRESS> 1000000agnet --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

Redelegate Stake to Another Validator

galacticad tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000agnet --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

Unbond

galacticad tx staking unbond $(galacticad keys show $WALLET --bech val -a) 1000000agnet --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

Transfer Funds

galacticad tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000agnet --gas 200000 --gas-prices 10agnet -y

Validator operations

Create New Validator

galacticad tx staking create-validator \
--amount 1000000agnet \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(galacticad tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxx" \
--chain-id galactica_9302-1 \
--gas 200000 --gas-prices 10agnet \
-y

Edit Existing Validator

galacticad tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxxx" \
--from $WALLET \
--chain-id galactica_9302-1 \
--gas 200000 --gas-prices 10agnet \
-y

Validator info

galacticad status 2>&1 | jq .ValidatorInfo

Validator Details

galacticad q staking validator $(galacticad keys show $WALLET --bech val -a)

Jailing info

galacticad q slashing signing-info $(galacticad tendermint show-validator)

Slashing parameters

galacticad q slashing params

Unjail validator

galacticad tx slashing unjail --from $WALLET --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y

Active Validators List

galacticad q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl

Check Validator key

[[ $(galacticad q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(galacticad status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"

Signing info

galacticad q slashing signing-info $(galacticad tendermint show-validator)

Governance

Create New Text Proposal

galacticad  tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000agnet \
--type Text \
--from $WALLET \
--gas 200000 --gas-prices 10agnet \
-y 

Proposals List

galacticad query gov proposals

Last updated