Node CLI Cheatsheet

  • Network Type: Mainnet
  • Chain-id: realionetwork_3301-1
  • Current Node version: v1.0.2
  • 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

    realio-networkd keys add <wallet>

    Recover Wallet

    realio-networkd keys add <wallet> --recover

    List Wallet

    realio-networkd keys list

    Delete Wallet

    realio-networkd keys delete <wallet>

    Check Wallet Balance

    realio-networkd q bank balances $(realio-networkd keys show wallet -a)

    Validator Management

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

    realio-networkd tendermint show-validator
    nano /root/.realio-network/validator.json
    {
      "pubkey": ,
      "amount": "1000000000000000000ario",
      "moniker": "",
      "identity": "",
      "website": "",
      "security": "",
      "details": "r",
      "commission-rate": "0.05",
      "commission-max-rate": "0.2",
      "commission-max-change-rate": "0.05",
      "min-self-delegation": "1"
    }
    realio-networkd tx staking create-validator $HOME/.realio-network/validator.json \
    --from wallet \
    --chain-id realionetwork_3301-1 \
    --gas 800000 \
    --fees 5000000000000000ario

    Edit Validator

    realio-networkd tx staking edit-validator \
    --moniker="<MONIKER>" \
    --identity="YOUR_KEYBASE_ID" \
    --details="YOUR_DETAILS" \
    --website="YOUR_WEBSITE_URL"
    --chain-id realionetwork_3301-1 \
    --commission-rate=0.05 \
    --from=wallet \
    --gas 800000 \
    --fees 5000000000000000ario

    Unjail Validator

    realio-networkd tx slashing unjail --from <wallet> --chain-id --chain-id realionetwork_3301-1 --gas-adjustment 1.15 --gas="1000000" --gas-prices="30000000000ario" -y

    Check Jailed Reason

    realio-networkd query slashing signing-info $(realio-networkd tendermint show-validator)

    Token Management

    Withdraw Rewards

    realio-networkd tx distribution withdraw-all-rewards --from wallet --chain-id realionetwork_3301-1 --gas-adjustment 1.15 --gas="1000000" --gas-prices="30000000000ario" -y

    Withdraw Rewards with Comission

    realio-networkd tx distribution withdraw-rewards $(realio-networkd keys show wallet --bech val -a) --commission --from wallet --chain-id realionetwork_3301-1 --gas-adjustment 1.15 --gas="1000000" --gas-prices="30000000000ario" -y

    Delegate Token to your own validator

    realio-networkd tx staking delegate $(realio-networkd keys show wallet --bech val -a) 1000000ario --from wallet --chain-id realionetwork_3301-1 --gas-adjustment 1.15 --gas="1000000" --gas-prices="30000000000ario" -y

    Delegate Token to other validator

    realio-networkd tx staking redelegate $(realio-networkd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000ario --from wallet --chain-id realionetwork_3301-1 --gas-adjustment 1.15 --gas="1000000" --gas-prices="30000000000ario" -y

    Unbond Token from your validator

    realio-networkd tx staking unbond $(realio-networkd keys show wallet --bech val -a) 1000000ario --from wallet --chain-id realionetwork_3301-1 --gas-adjustment 1.15 --gas="1000000" --gas-prices="30000000000ario" -y

    Send Token to another wallet

    realio-networkd tx bank send wallet <TO_WALLET_ADDRESS> 1000000ario --from wallet --chain-id realionetwork_3301-1

    Governance

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

    realio-networkd tx gov vote 1 yes --from wallet --chain-id realionetwork_3301-1 --gas-adjustment 1.15 --gas="1000000" --gas-prices="30000000000ario" -y

    Other

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

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

    Enable Indexing usually enabled by default

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

    Disable Indexing

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

    Reset Chain Data

    realio-networkd tendermint unsafe-reset-all --home $HOME/.realio-network --keep-addr-book

    Delete Node

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

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