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

_7
terrad query gov proposals --depositor terra1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
_7
_7
terrad query gov proposals --voter terra1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
_7
_7
terrad query gov proposals --status (DepositPeriod|VotingPeriod|Passed|Rejected)
_7
_7
terrad query gov proposals --page=2 --limit=100

Usage

Terrad
Copy

_1
terrad query gov proposals [flags]

Options

Terrad
Copy

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

Options inherited from parent commands

Terrad
Copy

_1
--chain-id string The network chain ID

See also