Important Governance Commands V1.0


Create a new param-change proposal:

     
                                                                                                
zebicli tx gov submit-proposal param-change <proposal.json file path> --gas-prices 500.0zebi --gas=auto --gas-adjustment=1.3 --from <account_address>

Eg: zebicli tx gov submit-proposal param-change proposal.json --gas-prices 500.0zebi --gas=auto --gas-adjustment=1.3 --from zebi1vtyhu5xxux9pzlq3c4f69spjgda523y8k4kavz

Deposit tokens for proposals in deposit period:

     
  
zebicli tx gov deposit [proposal_id] [deposit_amount] --from <account_address> --chain-id zpb-mainnet-1
   
Eg: zebicli tx gov deposit 1 10000000000000zebi --from zebi1vtyhu5xxux9pzlq3c4f69spjgda523y8k4kavz --chain-id zpb-mainnet-1

NOTE: Please note that whenever you are transacting on zebicli, multiply token value with 10 8 what is displayed in wallet.
Eg: 1zebi in wallet = 100000000zebi in zebicli


Command to Vote for a Proposal:

     
                                  
zebicli tx gov vote <proposal_id> <your_option:Yes/No/Abstain/NowithVeto> --gas auto --gas-adjustment 1.5 --gas-prices 500.0zebi --from <account_address> --chain-id zpb-mainnet-1

Eg to vote Yes: zebicli tx gov vote 1 Yes --gas auto --gas-adjustment 1.5 --gas-prices 500.0zebi --from zebi1vtyhu5xxux9pzlq3c4f69spjgda523y8k4kavz --chain-id zpb-mainnet-1

Query Commands:

To get all the proposals:

     
  zebicli query gov proposals --chain-id zpb-mainnet-1
 

To get an individual proposal:

     
   zebicli query gov proposal <proposal_id> --chain-id zpb-mainnet-1

Eg: zebicli query gov proposal 1 --chain-id zpb-mainnet-1

To get voting count for a proposal:

     
                                
zebicli query gov votes <proposal_id> --chain-id zpb-mainnet-1

Eg: zebicli query gov votes 1 --chain-id zpb-mainnet-1

To check whether the proposal is passed or not:

     
                                                                
zebicli query gov proposal <proposal_id> --chain-id  zpb-mainnet-1 

Eg: zebicli query gov proposal 1 --chain-id zpb-mainnet-1