0xMiden / 0xMiden/rust-sdk

CLI: add new --show option for miden-client tx

未關閉
#2,425 3 則留言 0 個 reaction 已指派 1 人 已被 @melnikga 認領 在 GitHub 檢視
主要語言
Rust
星號
78
分支
129
平均合併
4 天 11 小時
30 天內合併 PR
52

描述

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.

貢獻指南

開啟貢獻指南

研究方向

查看現有的 `miden-client tx` 命令實作,以了解交易資料的擷取和顯示方式。新的 `--show ` 選項應擴展此功能,以輸出單一交易的詳細元資料。首先檢查 CLI 命令結構和交易資料模型,然後為指定欄位實作格式化。透過使用已知的交易 ID 執行命令進行測試。

由索引模型根據 Issue 內容生成。

評估

領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。