CLI: add new --show option for miden-client tx
- Lingua principale
- Rust
- Stelle
- 78
- Fork
- 129
- Merge medio
- 4g 11h
- PR unite (30g)
- 52
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina l'implementazione esistente del comando `miden-client tx` per capire come vengono recuperati e visualizzati i dati della transazione. La nuova opzione `--show ` dovrebbe estendere questa funzionalità per produrre metadati dettagliati per una singola transazione. Inizia esaminando la struttura del comando CLI e il modello di dati della transazione, quindi implementa la formattazione per i campi specificati. Esegui il test eseguendo il comando con un ID transazione noto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 65/100