CLI: add new --show option for miden-client tx
- Dominant language
- Rust
- Stars
- 78
- Forks
- 129
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 52
Description
miden-client txis the only place where you can look at a transaction after it has been submitted, and it is only where you can track transaction from the CLI. It looks like:
ID | Status | Account ID | Script Root | Input Notes | Output Notes
-- | -- | -- | -- | -- | --
0x0c97... | Committed (Block: 52) | 0xb753... | 0x09e1... | 0 | 1
0xbdd8... | Pending | 0xb753... | 0x09e1... | 0 | 1
New tx --show <id> should print metadata about single transaction: transaction ID, status, account ID, script root, notes IDs, block number, block height, transaction status with the expiration block in case of "Pending" status, creation time, and the account state commitment before and after. A private note that isn't yours can't be resolved at all, instead of the ID we mark it as private.
Contributor guide
Research direction
Look at the existing `miden-client tx` command implementation to understand how transaction data is fetched and displayed. The new `--show ` option should extend this to output detailed metadata for a single transaction. Start by examining the CLI command structure and the transaction data model, then implement the formatting for the specified fields. Test by running the command with a known transaction ID.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100