Add wallet commands that returns a list of unused addresses
維護者通常 1 天內回覆
評估
研究方向
Start by reading the existing wallet unused_address command and how it calls bdk_wallet::Wallet::list_unused_addresses. Add a plural unused_addresses command that returns all revealed but unused addresses; consider the mentioned --keychain_kind flag with External as the default. The issue asks whether this should replace or accompany the singular command, so settle that design question before implementation.
由索引模型根據 Issue 內容生成。
描述
Describe the enhancement
Currently bdk-cli can only return the last unused address from a wallet when long standing account could contain multiple unused addresses. The bdk_wallet::Wallet already provides list_unused_addresses method, which returns an iterator of revealed-but-unused addresses. This feature request exposes that method via the CLI. The current command is:
cargo run wallet -w test_user1 unused_address
it returns something like:
{
"address": "tb1q0aj7vx0lxy.....scjveq6",
"index": 0
}
Use case
If a wallet builds a transaction involving many New internal addresses but that transaction is never broadcast, then all of these addresses can now easily be used in a later transaction via the new unused_addresses subcommand. The singular method cannot solve this. The list method does, because it surfaces all the stranded addresses so they can be reused.
Additional context
Alongside this issue the KeychainKind is hardcoded into it as KeychainKind::External. It might be about time to bring the --keychain_kind flag to see both kinds and keep KeychainKind::External as default.
I plan to work on this issue myself but I want to know if this should replace the current subcommand or exist alongside it.
- 主要語言
- Rust
- 星號
- 143
- 分支
- 103
- 平均合併
- 2 天 8 小時
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
bitcoindevkit/bdk-cli 的其他 Issue
-
key generate subcommand silently coerces any word count other than 12 to 24 words可能已有人在做 @Olorunshogo 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 84/100
bitcoindevkit/bdk-cli#362 · 3 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 82/100
bitcoindevkit/bdk-cli#360 ·
維護者通常 1 天內回覆
-
Expose remaining SignOptions fields in the wallet sign command可能已有人在做 @emma31-dev 於 3 天前認領。 未關閉enhancement
難度 2/5 1-3 小時 新手友好度 78/100
bitcoindevkit/bdk-cli#358 · 1 則留言 ·
維護者通常 1 天內回覆
-
wallet sign command returns generic error for decoding failures可能已有人在做 @emma31-dev 於 4 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 72/100
bitcoindevkit/bdk-cli#357 ·
維護者通常 1 天內回覆
-
Remove "wallet" field from `WalletConfigInner`可能已有人在做 @Jennycj 於 12 天前認領。 未關閉enhancement
難度 2/5 1-3 小時 新手友好度 72/100
bitcoindevkit/bdk-cli#332 · 2 則留言 ·
維護者通常 1 天內回覆
查看 bitcoindevkit/bdk-cli 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
farion1231/cc-switch#8829 ·
維護者通常 1 天內回覆
-
bug ci good first issue
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
longbridge/gpui-kit#3677 ·
維護者通常 1 天內回覆
-
E-pr-welcome
難度 2/5 1-3 小時 新手友好度 77/100
seanmonstar/reqwest#3121 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 68/100
ilya-zlobintsev/LACT#1235 ·
維護者通常 1 天內回覆