gov
The governance module provides tools for querying, submitting, and voting on proposals

Available Commands

Name
Description
proposal
Query details of a single proposal
proposals
Query proposals with optional filter
vote
Query details of a single vote
votes
Query votes on a proposal
deposit
Query details of a deposit
deposits
Query deposits on a proposal
tally
Get the tally of a proposal vote
param
Query the parameters (voting
params
Query the parameters of the governance process
proposer
Query which address proposed a proposal with a given ID.
Submit a proposal along with an initial deposit
deposit
Deposit tokens for an active proposal
vote
Vote for an active proposal, options: yes/no/no_with_veto/abstain

junod query gov proposal

Query details of a single governance proposal:
1
junod query gov proposal [proposal-id] [flags]
Copied!
Flags:
Name, shorthand
Type
Required
Default
Description
--depositor
Address
Filter proposals by depositor address
--limit
uint
100
Limit to the latest [number] of proposals. Default to all proposals
--status
string
Filter proposals by status
--voter
Address
Filter proposals by voter address

junod query gov proposals

Query all proposals:
1
junod query gov proposals
Copied!
Query proposals with conditions filters:
1
junod query gov proposals --limit=3 --status=Passed --depositor=<juno...>
Copied!

junod query gov vote

Query details of a single vote.
1
junod query gov vote [proposal-id] [voter-addr] [flags]
Copied!

junod query gov votes

Query votes on a proposal.
1
junod query gov votes [proposal-id] [flags]
Copied!

junod query gov deposit

Query details for a single proposal deposit on a proposal by its identifier.
1
junod query gov deposit [proposal-id] [depositer-addr] [flags]
Copied!

junod query gov deposits

Query details for all deposits on a proposal.
1
junod query gov deposits [proposal-id] [flags]
Copied!

junod query gov tally

Query tally of votes on a proposal.
1
junod query gov tally [proposal-id] [flags]
Copied!

junod query gov param

Query the parameters (voting | tallying | deposit) of the governance process.
1
junod query gov param [param-type] [flags]
Copied!
Example:
1
# query voting parameters
2
junod query gov param voting
3
4
# query tallying parameters
5
junod query gov param tallying
6
7
# query deposit parameters
8
junod query gov param deposit
Copied!

junod query gov params

Query the all the parameters for the governance process.
1
junod query gov params [flags]
Copied!

junod query gov proposer

Query which address proposed a proposal with a given ID.
1
junod query gov proposer [proposal-id] [flags]
Copied!

junod tx gov submit-proposal

Submit a proposal along with an initial deposit. Proposal title, description, type and deposit can be given directly or through a proposal JSON file. Available Commands:
Name
Description
cancel-software-upgrade
Cancel the current software upgrade proposal
community-pool-spend
Submit a community pool spend proposal
param-change
Submit a parameter change proposal
software-upgrade
Submit a software upgrade proposal

junod tx gov submit-proposal community-pool-spend

Submit a community pool spend proposal along with an initial deposit. The proposal details must be supplied via a JSON file.
1
junod tx gov submit-proposal community-pool-spend <path/to/proposal.json> --from=<key_or_address>
Copied!
Where proposal.json contains, for example:
1
{
2
"title": "Community Pool Spend",
3
"description": "Send me tokens, to benefit the Juno community",
4
"recipient": "juno1ludczrvlw36fkur9vy49lx4vjqhppn30h42ufg",
5
"amount": "1000000ujuno",
6
"deposit": "1000ujuno"
7
}
Copied!

junod tx gov submit-proposal param-change

Submit a parameter proposal along with an initial deposit. The proposal details must be supplied via a JSON file. For values that contains objects, only non-empty fields will be updated.
IMPORTANT
Currently parameter changes are evaluated but not validated, so it is very important that any "value" change is valid (ie. correct type and within bounds) for its respective parameter, eg. "MaxValidators" should be an integer and not a decimal.
Proper vetting of a parameter change proposal should prevent this from happening (no deposits should occur during the governance process), but it should be noted regardless.
1
junod tx gov submit-proposal param-change <path/to/proposal.json> --from=<key_or_address>
Copied!
Where proposal.json contains, for example:
1
{
2
"title": "Staking Param Change",
3
"description": "Update max validators",
4
"changes": [
5
{
6
"subspace": "staking",
7
"key": "MaxValidators",
8
"value": 105
9
}
10
],
11
"deposit": "1000ujuno"
12
}
Copied!

junod tx gov submit-proposal software-upgrade

Submit a software upgrade along with an initial deposit. Please specify a unique name and height OR time for the upgrade to take effect.
1
junod tx gov submit-proposal software-upgrade [name] (--upgrade-height [height] | --upgrade-time [time]) (--upgrade-info [info]) [flags]
Copied!
Flags:
Name, shorthand
Type
Required
Default
Description
--deposit
Coin
Yes
Deposit of the proposal
--title
string
Yes
Title of proposal
--description
string
Yes
Description of proposal
--upgrade-height
int64
The height at which the upgrade must happen (not to be used together with --upgrade-time)
--time
string
The time at which the upgrade must happen (not to be used together with --upgrade-height)
--info
string
Optional info for the planned upgrade such as commit hash, etc.
TIP
To enable nodes managed by forbole/cosmovisor to undertake an automatic upgrade, where the operator has the required environment variable set.
Store an os/architecture -> binary URI map in the upgrade plan info field as JSON under the "binaries" key, eg:
1
{
2
"binaries": {
3
"linux/amd64":"https://example.com/juno.zip?checksum=sha256:aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f"
4
}
5
}
Copied!

junod tx gov submit-proposal cancel-software-upgrade

Cancel a software upgrade along with an initial deposit.
1
junod tx gov submit-proposal cancel-software-upgrade [flags]
Copied!
Flags:
Name, shorthand
Type
Required
Default
Description
--deposit
Coin
Yes
Deposit of the proposal
--title
string
Yes
Title of proposal
--description
string
Yes
Description of proposal

junod tx gov deposit

Submit a deposit for an active proposal. You can find the proposal-id by running junod query gov proposals.
1
junod tx gov deposit [proposal-id] [deposit] [flags]
Copied!

junod tx gov vote

Submit a vote for an active proposal. You can find the proposal-id by running junod query gov proposals. Vote for an active proposal, options: (yes | no | no_with_veto | abstain).
1
junod tx gov vote [proposal-id] [option] [flags]
Copied!
Example vote, voting yes on proposal number 1:
1
junod tx gov vote 1 yes --from=<key_or_address> --fees=1juno
Copied!
Last modified 2mo ago