cosmos-sdk/docs/sdk/sdk-by-examples/simple-governance/submit-proposal.md

697 B

Submit a proposal

Uuse the CLI to create a new proposal:

simplegovcli propose --title="Voting Period update" --description="Should we change the proposal voting period to 3 weeks?" --deposit=300Atoms

Or, via a json file:

simplegovcli propose --proposal="path/to/proposal.json"

Where proposal.json contains:

{
  "title": "Voting Period Update",
  "description": "Should we change the proposal voting period to 3 weeks?",
  "type": "Text",
  "deposit": "300Atoms"
}

Get the details of your newly created proposal:

simplegovcli proposal 1

You can also check all the existing open proposals:

simplegovcli proposals --active=true