NodersUA Team
  • Intoduction
    • About NodersUA
    • Supported Networks
    • Our Comunity
  • Testnet
    • Gensyn
    • LayerEdge
    • Pipe
    • Multiple
    • Privasea
    • OpenLedger
    • Nexus
    • Cysic
    • Titan
      • Installation (Validator Node)
      • Update (Validator Node)
      • Installation (L1 Node Operation Tutorial)
      • Useful Commands
      • Delete
    • Hemi
      • Install
      • Update
    • Gaia
    • Rivalz
      • Install
      • Update
    • Allora
      • Install
      • Update
    • 0G Network
      • Installation (Validator Node)
      • Update (Validator Node)
      • Installation (Storage Node And DA Services)
      • Useful Commands
      • Delete
    • Shardeum
      • Installation
      • Update
      • Useful Commands
  • Mainnet
    • Forta
      • Installation
    • Gitopia
      • Installation
      • Update
      • Useful Commands
  • Archive
    • Midnight
      • Install
      • New Install
    • ICN
    • Cat Protcol
    • Morphl2
    • Elixir
      • Update to mainnet
    • Subspace / Gemini-3h (Advanced CLI)
      • Installation
      • Operators guide
      • Update
      • Useful commands
      • Delete
    • Dill
    • Aleo
      • Install
    • Union
      • Install
    • Analog
      • Install
    • Babylon
      • Installation
      • Useful Commands
      • Delete
    • Penumbra
      • Installation
      • Update
      • Useful Commands
      • Delete
    • Fleek (Lightning)
      • Installation
      • Update
      • Useful Commands
    • Farcastr
      • Install
    • 5ire
      • Installation
      • Useful Commands
    • Andromeda
      • Installation
      • Update
      • Snapshot/StateSync/AddrBook
      • Useful Commands
    • Avail
      • Installation (Validator)
      • Update (Validator)
      • Installation (Light node)
      • Update (Light node)
      • Useful Commands
      • Delete
    • Bundlr
      • Installation
      • Useful Commands
    • Cascadia
      • Installation
      • Update
      • Useful Commands
    • Composible
      • Installation
      • Useful Commands
    • DeFund
      • Installation
      • Update
      • StateSync/Snapshot/AddrBook
      • Useful Commands
      • Delete
    • Dymension
      • Installation
      • Update
      • Snapshot/StateSync/AddrBook
      • Useful Commands
    • EmpowerChain
      • Installation
      • Update
      • Useful Commands
      • Task
    • Fleek (Ursa)
      • Installation
      • Update
      • Delete
      • Useful Commands
    • Gear
      • Installation
      • Update
      • Useful Commands
      • Remove
    • Gitopia
      • Installation
      • Update
      • StateSync/Snapshot/AddrBook
      • Useful Commands
    • Holograph
      • Installation
      • Useful Commands
      • Delete
    • Iron Fish
      • Installation
      • Wallet
      • Update
      • Useful Commands
    • Lava
      • Installation (Lava-testnet)
      • Installation (Axelar-testnet+mainnet)
      • Provider
      • Useful Commands
    • Lava Network
      • Installation
      • Update
      • StateSync/Snapshot/AddrBook
      • Useful commands
    • Masa
      • Installation
      • Update
      • Delete
    • Namada
      • Installation
      • Update
      • Delete
    • Nibiru
      • Installation
      • Update
      • SnapShot/StateSync/AddrBook
      • Smart Contract Tasks
      • Useful Commands
    • Nolus
      • Installation
      • Update
      • SnapShot/StateSync/AddrBook
      • Useful Commands
    • OJO
      • Installation
      • Update
      • Snapshot/StateSync/AddrBook
      • Useful Commands
    • Realio
      • Installation
      • Update
      • StateSync/Snapshot/AddrBook
      • Useful Commands
      • Delete
    • SAO
      • Installation
      • Update
      • Snapshot/StateSync/AddrBook
      • Useful Commands
    • StarkNet
      • Installation
      • Update
      • Useful Commands
    • Streamr
      • Installation
    • Subspace / Gemini-3f (Pulsar)
      • Installation
      • Update
      • Useful commands
      • Delete
    • Taiko
      • Installation
      • Update
      • Enable an SGX prover
      • Delete
    • Tangle
      • Installation
      • Useful Commands
      • Delete
    • Sui (Devnet)
      • Installation (Linux)
      • Installation (Docker)
      • Update (Linux)
      • Useful commands
      • Delete (Linux)
      • Delete (Docker)
      • Wallets
    • Sui (Tesnet)
      • Installation (Linux)
      • Useful commands
      • Update (Linux)
      • Delete (Linux)
    • Story
    • Nubit
      • Install (Light Node)
      • Install (Validator Node)
      • Update (Light Node)
    • Waku
Powered by GitBook
On this page
  • Information
  • Work with wallets
  • Delete Node
  • Governance
  • Peers and RPC

Was this helpful?

Edit on GitHub
  1. Archive
  2. Babylon

Useful Commands

Information

# Check the blocks
babylond status 2>&1 | jq ."sync_info"."latest_block_height"

# Check logs
journalctl -u babylond -f -o cat

# Restart
systemctl restart babylond && journalctl -u babylond -f -o cat

# Check status
babylond status 2>&1 | jq .sync_info

# Check balance
babylond q bank balances $BABYLON_ADDRESS

# Check pubkey of validator
babylond tendermint show-validator

# Check validator
babylond q staking validator $BABYLON_VALOPER
babylond q staking validators --limit 1000000 -o json | jq '.validators[] | select(.description.moniker="$BABYLON_VALOPER")' | jq

# Check information of TX_HASH
babylond q tx <TX_HASH>

# Check how many blocks were passed by the validator and from which block the asset
babylond q slashing signing-info $(babylond tendermint show-validator)
Transactions

# Collect rewards from all validators delegated to them (without commission)
babylond tx distribution withdraw-all-rewards --from wallet --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" -y

# Collect rewards from a separate validator or rewards + commission from your own validator
babylond tx distribution withdraw-rewards $BABYLON_VALOPER --from wallet --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" --commission -y

# Delegate yourself (this is how 1 coin is sent)
babylond tx staking delegate $BABYLON_VALOPER 1000000ubbn --from wallet --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" -y

# Redelegate to other validator
babylond tx staking redelegate $BABYLON_VALOPER <dst-validator-addr> 1000000ubbn --from wallet --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" -y

# unbond 
babylond tx staking unbond $BABYLON_VALOPER 1000000ubbn --from wallet --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" -y

# Send tokens to other adress
babylond tx bank send wallet <address> 1000000ubbn --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" -y

# Escape from jail
babylond tx slashing unjail --from wallet --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" -y

! If the transactions are not sent with the error account sequence mismatch, expected 18, got 17: incorrect account sequence, then add the flag -s 18 to the command (replace the number with the one that is waiting for the sequence)

Work with wallets

# Chech the wallets list
babylond keys list

# Delete wallet
babylond keys delete <name_wallet>

Delete Node

sudo systemctl stop babylond && \
sudo systemctl disable babylond && \
rm /etc/systemd/system/babylond.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf babylon && \
rm -rf .babylond && \
rm -rf $(which babylond)

Governance

# List proposals
babylond q gov proposals

# Check voting result
babylond q gov proposals --voter $BABYLON_ADDRESS

# Vote 
babylond tx gov vote 20 yes --from wallet --gas="auto" --gas-adjustment=1.2 --gas-prices="0.00001ubbn" -y

Peers and RPC

FOLDER=.babylond

# Check your peer
PORTR=$(grep -A 3 "\[p2p\]" ~/$FOLDER/config/config.toml | egrep -o ":[0-9]+") && \
echo $(babylond tendermint show-node-id)@$(curl ifconfig.me)$PORTR

# Check port of RPC
echo -e "\033[0;32m$(grep -A 3 "\[rpc\]" ~/$FOLDER/config/config.toml | egrep -o ":[0-9]+")\033[0m"

# Check peers quantity
PORT=
curl -s http://localhost:BABYLON_PORT/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":")[2])"' | wc -l
PreviousInstallationNextDelete

Last updated 1 year ago

Was this helpful?