Node CLI Cheatsheet

  • Network Type: Testnet
  • Chain-id: entangle_33133-1
  • Current Node version: v1.0.1
  • CLI Cheatsheet

    • Always be careful with the capitalized words
    • Specify --chain-id

    Wallet Management

    Add Wallet Specify the value <wallet> with your own wallet name

    entangled keys add wallet

    Recover Wallet

    entangled keys add wallet --recover

    List Wallet

    entangled keys list

    Delete Wallet

    entangled keys delete wallet

    Export Wallet to EVM

    entangled keys unsafe-export-eth-key wallet

    Check Wallet Balance

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

    Validator Management

    Please adjust <wallet> , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUUR_WEBSITE_URL

    Create Validator (Staking)

    entangled tx staking create-validator \
    --amount="9990000000000000000aNGL" \
    --pubkey=$(entangled tendermint show-validator) \
    --moniker="" \
    --identity="" \
    --details="" \
    --website="" \
    --chain-id=entangle_33133-1 \
    --commission-rate="0.10" \
    --commission-max-rate="0.20" \
    --commission-max-change-rate="0.01" \
    --min-self-delegation="1" \
    --from=wallet \
    --gas-adjustment 1.4 \
    --gas=500000 \
    --gas-prices=10aNGL

    Edit Validator

    entangled tx staking edit-validator \
    --new-moniker="" \
    --identity="" \
    --details="" \
    --website="" \
    --chain-id=entangle_33133-1 \
    --from=wallet \
    --gas-adjustment 1.4 \
    --gas=500000 \
    --gas-prices=10aNGL

    Unjail Validator

    entangled tx slashing unjail --from wallet --chain-id entangle_33133-1 --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Check Jailed Reason

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

    Token Management

    Withdraw Rewards

    entangled tx distribution withdraw-all-rewards --from wallet --chain-id entangle_33133-1  --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Withdraw Rewards with Comission

    entangled tx distribution withdraw-rewards $(entangled keys show wallet --bech val -a) --commission --from wallet --chain-id entangle_33133-1  --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Delegate Token to your own validator

    entangled tx staking delegate $(entangled keys show wallet --bech val -a) 10000000000000000000aNGL --from wallet --chain-id entangle_33133-1  --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Delegate Token to other validator

    entangled tx staking redelegate $(entangled keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 10000000000000000000aNGL --from wallet --chain-id entangle_33133-1  --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Unbond Token from your validator

    entangled tx staking unbond $(entangled keys show wallet --bech val -a) 10000000000000000000aNGL --from wallet --chain-id entangle_33133-1  --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Send Token to another wallet

    entangled tx bank send wallet <TO_WALLET_ADDRESS> 10000000000000000000aNGL --from wallet --chain-id entangle_33133-1 --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Governance

    Vote You can change the value of yes to no,abstain,nowithveto

    entangled tx gov vote 1 yes --from wallet --chain-id entangle_33133-1  --gas-adjustment 1.4 --gas=500000 --gas-prices=10aNGL

    Other

    Set Your own Custom Ports You can change value CUSTOM_PORT=44 To any other ports

    CUSTOM_PORT=30
    sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${PORT}660\"%" $HOME/.entangled/config/config.toml
    sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${PORT}317\"%; s%^address = \":8080\"%address = \":${PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${PORT}091\"%; s%^address = \"127.0.0.1:8545\"%address = \"127.0.0.1:${PORT}545\"%; s%^ws-address = \"127.0.0.1:8546\"%ws-address = \"127.0.0.1:${PORT}546\"%" $HOME/.entangled/config/app.toml

    Enable Indexing usually enabled by default

    sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.entangled/config/config.toml

    Disable Indexing

    sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.entangled/config/config.toml

    Reset Chain Data

    entangled tendermint unsafe-reset-all --home $HOME/.entangled --keep-addr-book

    Delete Node

    WARNING! Use this command wisely Backup your key first it will remove Defund from your system

    sudo systemctl stop entangled
    sudo systemctl disable entangled
    sudo rm /etc/systemd/system/entangled.service
    sudo systemctl daemon-reload
    rm -f $(which entangled)
    rm -rf .entangled
    rm -rf entangle-blockchain