CLI: add new --show option for miden-client tx
- Lenguaje dominante
- Rust
- Estrellas
- 78
- Forks
- 129
- Merge medio
- 4 d 11 h
- PR fusionados (30 d)
- 52
Descripción
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.
Guía de contribución
Línea de trabajo
Examine la implementación existente del comando `miden-client tx` para comprender cómo se obtienen y muestran los datos de transacción. La nueva opción `--show ` debe extender esto para generar metadatos detallados de una sola transacción. Comience examinando la estructura del comando CLI y el modelo de datos de transacción, luego implemente el formato para los campos especificados. Pruebe ejecutando el comando con un ID de transacción conocido.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Área
- cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 65/100