Synopsis
Subcommands
cowboy query blocks
Query a range of blocks.
Behavior:
- Fetch blocks from
--startheight up to--endheight (or--limitblocks). - Print a summary of each block.
| Flag | Default | Description |
|---|---|---|
--start | Required | Starting block height |
--end | None | Ending block height (optional) |
--limit | 10 | Maximum number of blocks to return |
cowboy query transactions
Query transactions, optionally filtered by address.
Behavior:
- Fetch transactions from the chain.
- If
--addressis provided, filter to transactions involving that address (sender or recipient). - Print a summary of each transaction.
| Flag | Default | Description |
|---|---|---|
--address | None | Filter by account address (hex) |
--limit | 10 | Maximum number of transactions to return |
Edge Cases
- If no transactions match the filter, print an empty result (not an error).
- All subcommands are read-only and do not require a private key.

