Node Command
Check Node status
Copy RPC_PORT=26657
curl -s 127.0.0.1:$RPC_PORT/status | jq .
Check P2P Connection Status
Copy P2P_PORT=26656 && ss -anp | grep $P2P_PORT
Wallet Command
Create/Recovery Wallet
Copy WALLET_NAME=wallet_name
# create
initiad keys add $WALLET_NAME
# recovery
initiad keys add $WALLET_NAME --recover
Query balance
Copy initiad q bank balances $(initiad keys show $WALLET_NAME -a)
Validator Commands
Copy WALLET_NAME=wallet_name
initiad tx mstaking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "12345678" \
--details "Initia" \
--from $WALLET_NAME \
--chain-id initiation-1 \
--gas auto \
--fees 100000uinit
Query Jail Reason
Copy initiad q slashing signing-info $(initiad tendermint show-validator)
Unjail validator
Copy WALLET_NAME=wallet_name
initiad tx slashing unjail \
--chain-id initiation-1 \
--fees 100000uinit \
--from $WALLET_NAME
Query validator
Copy WALLET_NAME=wallet_name
initiad q mstaking validator $(initiad keys show $WALLET_NAME --bech val -a)
Signing Info
Copy initiad q mstaking signing-info $(initiad tendermint show-validator)
Query Active Validators
Copy LIMIT=6000
initiad q mstaking validators -oj --limit=$LIMIT | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '.operator_address + " " + .voting_power + " " + .description.moniker' | sort -gr | nl
Token Management
Delegate Token
Copy VALOPER_ADDRESS=$(initiad keys show wallet --bech val -a)
AMOUNT=1000000uinit
WALLET_NAME=wallet_name
CHAIN_ID=initiation-1
GAS_PRICE=0.15uinit
initiad tx mstaking delegate \
$VALOPER_ADDRESS $AMOUNT \
--from $WALLET_NAME \
--chain-id $CHAIN_ID \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices $GAS_PRICE \
-y
Send Token To Another Address
Copy FRON_WALLET=wallet_name
TO_ADDRESS=address
AMOUNT=1000000uinit
CHAIN_ID=initiation-1
GAS_PRICE=0.15uinit
initiad tx bank send $FRON_WALLET $TO_ADDRESS $AMOUNT \
--from $FRON_WALLET \
--chain-id $CHAIN_ID \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices $GAS_PRICE \
-y
Withdraw Rewards From All Delegated Validators
Copy WALLET_NAME=wallet_name
CHAIN_ID=initiation-1
GAS_PRICE=0.15uinit
initiad tx distribution withdraw-all-rewards \
--from $WALLET_NAME \
--chain-id $CHAIN_ID \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices $GAS_PRICE \
-y
Withdraw Commision From Your Validator
Copy WALLET_NAME=wallet_name
CHAIN_ID=initiation-1
GAS_PRICE=0.15uinit
initiad tx distribution withdraw-rewards $(initiad keys show wallet --bech val -a) \
--commission \
--from $WALLET_NAME \
--chain-id $CHAIN_ID \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices $GAS_PRICE \
-y
Governance
Query proposal by ID
Copy initiad query gov proposal <proposal_id>
Vote
Copy WALLET_NAME=wallet_name
CHAIN_ID=initiation-1
initiad tx gov vote <proposal_id> yes|no|no_with_veto|abstain \
--from $WALLET_NAME \
--chain-id $CHAIN_ID \
--gas-adjustment 1.4 \
--gas auto \
--fees 563000move/944f8dd8dc49f96c25fea9849f16436dcfa6d564eec802f3ef7f8b3ea85368ff \
-y
Maintenance
Reset all data
Copy DIR=~/.initia
initiad tendermint unsafe-reset-all --keep-addr-book --home $DIR --keep-addr-book
Get Node Sync Info
Copy RPC_PORT=26657
curl -s http://127.0.0.1:$RPC_PORT/status | jq .
or
Copy initiad status 2>&1 | jq .
Get Live Peers
Copy RPC_PORT=26657
curl -sS http://127.0.0.1:$RPC_PORT/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
Show Self Peer
Copy echo $(initiad tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.initia/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Last updated 10 months ago