Skip to content

Get All Gov Proposals

Get all gov proposals.

Method Declaration

Python
async def get_all_gov_proposals(
    self,
    proposal_status: Optional[str] = None,
    voter: Optional[str] = None,
    depositor: Optional[str] = None,
    key: Optional[bytes] = None,
    offset: Optional[int] = None,
    limit: Optional[int] = None,
    count_total: Optional[bool] = False,
    reverse: Optional[bool] = False,
) -> gov_query.QueryProposalsResponse

Parameters

ParameterLocationTypeMandatoryDescription
proposalStatusQueryProposalStatustrueStatus of the proposal to filter by.
voterQuerystringfalseVoter to filter by
depositorQuerystringfalseDepositor to filter by.

Response

StatusMeaningSchema
200OKGovV1Module.QueryProposalsResponse

Examples: API