CLI Cheatsheet

Chain ID: mantle-1 | Current Node Version: v0.3.1

Asset Mantle CLI Cheatsheet

This cheatsheet collects commonly used CLI commands for node operators to easily copy and paste. A few conventions we follow:

  • Capitalized words indicate placeholders

  • Always specify --chain-id and --node flags even when they are unnecessary

  • Query CLI command always uses --output json flag and pipes result through jq

Bank: Send

empowerd tx bank send KEY RECEIVER_ADDRESS 1000000umpwr \
  --chain-id circulus-1 \
  --node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umpwr --gas 250000 --gas-adjustment 1.2 \
  --from KEY

Distribution: Withdraw Rewards including Commission

empowerd tx distribution withdraw-rewards VALIDATOR_OPERATOR \
  --commission \
  --chain-id circulus-1 \
  --node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umpwr --gas 250000 --gas-adjustment 1.2 \
  --from KEY

Gov: Query Proposal

empowerd query gov proposal PROPOSAL_NUMBER \
  --chain-id circulus-1 \
  --node https://YOURIPADDRESSHERE:PORT \
  --output json | jq

Gov: Vote

VOTE_OTION: yes, no, no_with_veto and abstain.

empowerd tx gov vote PROPOSAL_NUMBER VOTE_OPTION \
  --chain-id circulus-1 \
  --node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umpwr --gas 250000 --gas-adjustment 1.2 \
  --from KEY

Slashing: Unjail

empowerd tx slashing unjail \
  --chain-id circulus-1 \
  --node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umpwr --gas 250000 --gas-adjustment 1.2 \
  --from KEY

Staking: Create Validator

Note: We use example filed values instead of capitalized dummy words for demo purpose in this command. Please make sure to adjust accordingly for your use.

empowerd tx staking create-validator \
  --amount 1000000umntl \
  --commission-max-change-rate "0.1" \
  --commission-max-rate "0.20" \
  --commission-rate "0.1" \
  --min-self-delegation "1" \
  --details "your bio goes here" \
  --pubkey=$(mantleNode tendermint show-validator) \
  --moniker $MONIKER_NAME \
  --chain-id circulus-1 \
  --gas-prices 0.025umpwr \
  --from <KEYNAME>

Last updated

Logo

Made with ❤️ by WhisperNode // © 2024.