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 txs

Query for paginated transactions that match a set of events.

Synopsis

Search for transactions that match the exact given events where results are paginated. Each event takes the form of {eventType}.{eventAttribute}={value}. Refer to each module's documentation for the full set of events to query for. Each module documents its respective events under xx_events.md.

Example

Terrad
Copy

_1
terrad query txs --events `message.sender=terra1...&message.action=withdraw_delegator_reward` --page 1 --limit 30

Usage

Terrad
Copy

_1
terrad query txs [flags]

Options

Terrad
Copy

_7
--events string list of transaction events in the form of {eventType}.{eventAttribute}={value}
_7
--height int Use a specific height to query state at (this can error if the node is pruning state)
_7
-h, --help help for txs
_7
--limit int Query number of transactions results per page returned (default 30)
_7
--node string <host>:<port> to Tendermint RPC interface for this chain (default "tcp://localhost:26657")
_7
-o, --output string Output format (text|json) (default "text")
_7
--page int Query a specific page of paginated results (default 1)

Options inherited from parent commands

Terrad
Copy

_1
--chain-id string The network chain ID

See also