Useful commands

Service operations ⚙️

Check logs

sudo journalctl -u entangled -f

Start service

sudo systemctl start entangled

Stop service

sudo systemctl stop entangled

Restart service

sudo systemctl restart entangled

Check service status

sudo systemctl status entangled

Reload services

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable entangled

Disable Service

sudo systemctl disable entangled

Sync info

entangled status 2>&1 | jq .SyncInfo

Node info

entangled status 2>&1 | jq .NodeInfo

Your node peer

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

Key management

Add New Wallet

entangled keys add $WALLET

Restore executing wallet

entangled keys add $WALLET --recover

List All Wallets

entangled keys list

Delete wallet

entangled keys delete $WALLET

Check Balance

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

Export Key (save to wallet.backup)

entangled keys export $WALLET

Import Key (restore from wallet.backup)

entangled keys import $WALLET wallet.backup

Tokens

Withdraw all rewards

entangled tx distribution withdraw-all-rewards --from $WALLET --chain-id entangle_33033-1 --gas=700000 --gas-prices="20aNGL"

Withdraw rewards and commission from your validator

entangled tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id entangle_33033-1 --gas=700000 --gas-prices="20aNGL" -y

Check your balance

entangled query bank balances $WALLET_ADDRESS

Delegate to Yourself

entangled tx staking delegate $(entangled keys show $WALLET --bech val -a) 1000000aNGL --from $WALLET --chain-id entangle_33033-1 --gas=700000 --gas-prices="20aNGL" -y

Delegate

entangled tx staking delegate <TO_VALOPER_ADDRESS> 1000000aNGL --from $WALLET --chain-id entangle_33033-1 --gas=700000 --gas-prices="20aNGL" -y

Redelegate Stake to Another Validator

entangled tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000aNGL --from $WALLET --chain-id entangle_33133-1 --gas=700000 --gas-prices="20aNGL" -y

Unbond

entangled tx staking unbond $(entangled keys show $WALLET --bech val -a) 1000000aNGL --from $WALLET --chain-id entangle_33033-1 --gas=700000 --gas-prices="20aNGL" -y

Transfer Funds

entangled tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000aNGL --gas=700000 --gas-prices="20aNGL" -y

Validator operations

Create New Validator

entangled tx staking create-validator \
--amount 1000000aNGL \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(entangled tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxx" \
--chain-id entangle_33033-1 \
--gas=700000 --gas-prices="20aNGL" \
-y

Edit Existing Validator

entangled tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxxxxxx" \
--from $WALLET \
--chain-id entangle_33033-1 \
--gas=700000 --gas-prices="20aNGL" \
-y

Validator info

entangled status 2>&1 | jq .ValidatorInfo

Validator Details

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

Jailing info

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

Unjail validator

entangled tx slashing unjail --from $WALLET --chain-id entangle_33033-1 --gas=700000 --gas-prices="20aNGL" -y

Active Validators List

entangled 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

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

Signing info

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

Governance

Create New Text Proposal

entangled  tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000aNGL \
--type Text \
--from $WALLET \
--gas=700000 --gas-prices="20aNGL" \
-y 

Proposals List

entangled query gov proposals

Proposal ID

View proposal

entangled query gov proposal 1

Vote

entangled tx gov vote 1 yes --from $WALLET --chain-id entangle_33033-1  --gas=700000 --gas-prices="20aNGL" -y

Last updated