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
Copy mantleNode tx bank send KEY RECEIVER_ADDRESS 1000000umntl \
--chain-id mantle-1 \
--node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umntl --gas 250000 --gas-adjustment 1.2 \
--from KEY
Distribution: Withdraw Rewards including Commission
Copy mantleNode tx distribution withdraw-rewards VALIDATOR_OPERATOR \
--commission \
--chain-id mantle-1 \
--node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umntl --gas 250000 --gas-adjustment 1.2 \
--from KEY
Gov: Query Proposal
Copy mantleNode query gov proposal PROPOSAL_NUMBER \
--chain-id mantle1 \
--node https://YOURIPADDRESSHERE:PORT \
--output json | jq
Gov: Vote
VOTE_OTION: yes
, no
, no_with_veto
and abstain
.
Copy mantleNode tx gov vote PROPOSAL_NUMBER VOTE_OPTION \
--chain-id mantle-1 \
--node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umntl --gas 250000 --gas-adjustment 1.2 \
--from KEY
Slashing: Unjail
Copy mantleNode tx slashing unjail \
--chain-id mantle-1 \
--node https://YOURIPADDRESSHERE:PORT --gas-prices 25000000000umntl --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.
Copy mantleNode 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 mantle-1 \
--gas-prices 0.025umntl \
--from < KEYNAM E >