Expand description
cq - CBOR Query Tool for Cardano transactions.
A CLI tool for inspecting and querying Cardano transactions encoded in CBOR format. Think of it as “jq for Cardano CBOR.”
§Features
- Parse CBOR transactions from file, hex string, or stdin
- Auto-detect input format
- Query specific fields with dot notation (e.g.,
outputs.0.address) - Support wildcards (e.g.,
outputs.*.address) - Format addresses as bech32
- Pretty terminal output with colors
- JSON output for piping
- Validation mode with exit codes
- Standalone address decoding
Re-exports§
Modules§
- cli
- CLI argument parsing for cq.
- decode
- CBOR decoding module with CML integration.
- error
- Error types for cq.
- format
- Output formatting module.
- input
- Input detection and reading module.
- query
- Query engine module for dot-notation queries.
Functions§
- run
- Run cq with the given arguments.