quasar-icon

Useful command Quasar

useful command , list of cli interactions to nodes Quasar

Note

1 QSR = 1000000uqsr
the first one you can use
                    
quasarnoded --help
                    
to see a list of all available commands

gas-setting:
                        
# you may need to adjust the composition of the gas fee when doing cli with basic tx ,
example format :

--gas-prices # decimal format [AMOUNT]uqsr
--gas #  gas limit default is "200000"
--fees # format [AMOUNT]uqsr
--gas-adjustment # default "1"

                        
define your own combination
below is an example of the command, make sure you remove the `[ ]` and replace the value

keys :

  • add keys
    quasarnoded keys add wallet
  • delete keys
    quasarnoded keys delete wallet
  • recover keys from a seed passphrase
    quasarnoded keys add wallet --recover
  • list all keys
    quasarnoded keys list
  • tx-bank :

  • send balance
    quasarnoded tx bank send wallet [TO_ADDRESS] [AMOUNT]uqsr \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"
  • multi send balance
    quasarnoded tx bank multi-send wallet [TO_ADDRESS1] [TO_ADDRESS2] [TO_ADDRESS3] [AMOUNT]uqsr \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"
  • tx staking :

  • create-validator
    quasarnoded tx staking create-validator \
    --amount 1000000uqsr \
    --pubkey $(quasarnoded tendermint show-validator) \
    --chain-id quasar-1 \
    --min-self-delegation 1 \
    --commission-max-change-rate 0.01 \
    --commission-max-rate 0.2 \
    --commission-rate 0.05 \
    --moniker ["VALIDATOR-MONIKER"] \
    --identity ["VALIDATOR-IDENTITY"] \
    --details ["VALIDATOR-DESCRIPTION"] \
    --website ["VALIDATOR-WEBSITE"] \
    --security-contact ["VALIDATOR-CONTACT"] \
    --from "wallet" \
    --gas "200000"
    
  • edit-validator
    quasarnoded tx staking edit-validator \
    --chain-id quasar-1 \
    --commission-rate 0.05 \
    --new-moniker ["NEW-VALIDATOR-MONIKER"] \
    --identity ["NEW-VALIDATOR-IDENTITY"] \
    --details ["NEW-VALIDATOR-DESCRIPTION"] \
    --website ["NEW-VALIDATOR-WEBSITE"] \
    --security-contact ["NEW-VALIDATOR-CONTACT"] \
    --from "wallet" \
    --gas "200000"
  • delegate / stake
    quasarnoded tx staking delegate [TO_VALOPER_ADDRESS] [AMOUNT]uqsr \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"
  • redelegate
    quasarnoded tx staking redelegate [SRC_VALOPER_ADDRESS] [TO_VALOPER_ADDRESS] [AMOUNT]uqsr \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"
  • tx slashing :

  • unjail-validator
    quasarnoded tx slashing unjail \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"
  • tx gov :

  • query all proposals:
    quasarnoded query gov proposals
  • query specific proposals by id:
    quasarnoded query gov proposal [PROPOSAL_ID]
  • vote proposal:

    OPTION_VALUE: yes , no , no_with_veto and abstain

    quasarnoded tx gov vote [PROPOSAL_ID] [OPTION] \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"
  • tx distribution :

  • Withdraw all rewards :
    quasarnoded tx distribution withdraw-all-rewards \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"
  • Withdraw reward and commission:
    quasarnoded tx distribution withdraw-rewards $(quasarnoded keys show wallet --bech val -a) \
    --commission \
    --chain-id quasar-1 \
    --from "wallet" \
    --gas "200000"