var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

terrad query gov proposals

Query for all paginated proposals that match optional filters.

Examples

You can also query proposals filtered by details, such as voter or depositor, by appending the corresponding flag and address at the end of the command statement, as shown in the following example:

Terrad
Copy
terrad query gov proposals --depositor terra1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk

terrad query gov proposals --voter terra1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk

terrad query gov proposals --status (DepositPeriod|VotingPeriod|Passed|Rejected)

terrad query gov proposals --page=2 --limit=100

Usage

Terrad
Copy
terrad query gov proposals [flags]

Options

Terrad
Copy
--count-total count total number of records in proposals to query for
--depositor string (optional) filter by proposals deposited on by depositor
--height int Use a specific height to query state at (this can error if the node is pruning state)
-h, --help help for proposals
--limit uint pagination limit of proposals to query for (default 100)
--node string <host>:<port> to Tendermint RPC interface for this chain (default "tcp://localhost:26657")
--offset uint pagination offset of proposals to query for
-o, --output string Output format (text|json) (default "text")
--page uint pagination page of proposals to query for. This sets offset to a multiple of limit (default 1)
--page-key string pagination page-key of proposals to query for
--reverse results are sorted in descending order
--status string (optional) filter proposals by proposal status, status: deposit_period/voting_period/passed/rejected
--voter string (optional) filter by proposals voted on by voted

Options inherited from parent commands

Terrad
Copy
--chain-id string The network chain ID

See also