Skip to main content
Version: v7.1.0


okp4d query txs

Query for paginated transactions that match a set of events


Search for transactions that match the exact given events where results are paginated. The events query is directly passed to Tendermint's RPC TxSearch method and must conform to Tendermint's query syntax.

Please refer to each module's documentation for the full set of events to query for. Each module documents its respective events under ''.

okp4d query txs [flags]


$ okp4d query txs --query "message.sender='cosmos1...' AND message.action='withdraw_delegator_reward' AND tx.height > 7" --page 1 --limit 30


      --grpc-addr string   the gRPC endpoint to use for this chain
--grpc-insecure allow gRPC over insecure channels, if not the server must use TLS
--height int Use a specific height to query state at (this can error if the node is pruning state)
-h, --help help for txs
--limit int Query number of transactions results per page returned (default 100)
--node string <host>:<port> to CometBFT RPC interface for this chain (default "tcp://localhost:26657")
--order_by string The ordering semantics (asc|dsc)
-o, --output string Output format (text|json) (default "text")
--page int Query a specific page of paginated results (default 1)
--query string The transactions events query per Tendermint's query semantics