Submitting a Proposal
Submit a proposal using the mantrachaind tx gov submit-proposal command.
This is best done by a person with command-line access to a fully synchronised MANTRA Chain node running the mantrachaind service.
mantrachaind tx gov submit-proposal <json file> \
--from <submitter address> \
--chain-id <chain id> \
--gas <max gas allocated> \
--gas-adjustment <number> \
--gas-prices=<uom> \
--node <node address> A specific example is given here:
mantrachaind tx gov submit-proposal $HOME/draft_proposal.json \
--from shaggy-dog-keys \
--chain-id mantra-hongbai-1 \
--gas="auto" \
--gas-adjustment 2 \
--gas-prices="0.0002uom" \
--node https://rpc.hongbai.mantrachain.io:443 If <proposal type> is left blank, the type will be a Text proposal. Otherwise, it can be set to param-change or community-pool-spend. Use --help to get more info from the tool.
mantrachaindis the command-line interface client that is used to send transactions and query the MANTRA Chain.tx gov submit-proposal community-pool-spendindicates that the transaction is submitting a community pool spend proposal.--~/community_spend_proposal.jsonindicates the file containing the proposal details.--from validator-01-walletis the account key that pays the transaction fee and deposit amount. This account key must be already saved in the keyring on your device and it must be an address you control.--gas 500000is the maximum amount of gas permitted to be used to process the transaction.The more content there is in the description of your proposal, the more gas your transaction will consume
If this number isn't high enough and there isn't enough gas to process your transaction, the transaction will fail.
The transaction will only use the amount of gas needed to process the transaction.
--feesis a flat-rate incentive for a validator to process your transaction.The network still accepts zero fees, but many nodes will not transmit your transaction to the network without a minimum fee.
Many nodes (including the Figment node) use a minimum fee to disincentivize transaction spamming.
7500uom is equal to 0.0075 OM.
--chain-id mantra-hongbai-1is MANTRA Hongbai Chain (Testnet).--node https://rpc.hongbai.mantrachain.io:443is using an established node to send the transaction to the MANTRA Chain network.
Note: be careful what you use for --fees. A mistake here could result in spending hundreds or thousands of OMs accidentally, which cannot be recovered.
Last updated