Query Proposals

Available Commands

Available Commands:
  deposit     Query details of a deposit
  deposits    Query deposits on a proposal
  param       Query the parameters (voting|tallying|deposit) of the governance process
  params      Query the parameters of the governance process
  proposal    Query details of a single proposal
  proposals   Query proposals with optional filters
  proposer    Query the proposer of a governance proposal
  tally       Get the tally of a proposal vote
  vote        Query details of a single vote
  votes       Query votes on a proposal

Querying Proposals

Query Using Proposal ID

Once created, you can now query information of the proposal:

secretcli query gov proposal <proposal_id>
# Output of querying for a proposal

content:
  '@type': /cosmos.gov.v1beta1.TextProposal
  description: "A description with line breaks \n and `code formatting`"
  title: My Cool Proposal
deposit_end_time: "2022-06-28T14:16:06.110227079Z"
final_tally_result:
  abstain: "0"
  "no": "0"
  no_with_veto: "0"
  "yes": "0"
proposal_id: "14"
status: PROPOSAL_STATUS_REJECTED
submit_time: "2022-06-28T13:16:06.110227079Z"
total_deposit:
- amount: "100000000"
  denom: uscrt
voting_end_time: "2022-06-28T14:16:06.110227079Z"
voting_start_time: "2022-06-28T13:16:06.110227079Z"

Query For All Proposals

You can query for all available proposals using:

Query For Proposal Depositor

You can query for the proposal depositor using:

Query For Proposal Depositors

You can query for the proposal depositors using:

Query For Proposal Voter

You can query for the proposal voter using:

Query for Proposal Proposer

To query for the proposer of a given governance proposal use:

Query Proposal Tally Results

To check the current tally of a given proposal you can use the tally command:

Query Governance Proposals

To check the current governance parameters run:

Querying Subsets of Governance Proposals

Voting

To query subsets of the governance parameters for voting run:

Tallying

To query subsets of the governance parameters for tallying run:

Deposit

To query subsets of the deposit governance parameters for voting run:

Last updated

Was this helpful?