Add wallet commands that returns a list of unused addresses
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
调研方向
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
- 星标
- 142
- 派生
- 103
- 平均合并
- 5 天 21 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bitcoindevkit/bdk-cli 的其他 Issue
-
Remove "wallet" field from `WalletConfigInner`可能已有人在做 @Jennycj 于 4 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 72/100
bitcoindevkit/bdk-cli#332 · 2 条评论 ·
维护者通常 4 天内回复
-
`warn!` output is invisible unless `RUST_LOG` is set可能已有人在做 @chukwudiikeh 于 2 天前认领。 未关闭
bitcoindevkit/bdk-cli#352 · 1 条评论 · 已指派 1 人 ·
维护者通常 4 天内回复
-
`compile` doesn't validate keys and returns unusable descriptors可能已有人在做 @Olorunshogo 于 7 天前认领。 未关闭enhancement
难度 3/5 1-2 天 新手友好度 52/100
bitcoindevkit/bdk-cli#344 · 1 条评论 ·
维护者通常 4 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 50/100
bitcoindevkit/bdk-cli#340 · 1 条评论 ·
维护者通常 4 天内回复
-
Enforce Core-compatible OP_RETURN / datacarrier and standard tx-size limits in create_tx可能已有人在做 @tvpeter 于 20 天前认领。 未关闭enhancement
bitcoindevkit/bdk-cli#339 · 已指派 1 人 ·
维护者通常 4 天内回复
查看 bitcoindevkit/bdk-cli 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
shep-pm/shep-kelpie#980 ·
维护者通常 1 天内回复
-
bug frontend rt sev-3
难度 2/5 1-3 小时 新手友好度 72/100
-
C-bug
难度 1/5 1 小时以内 新手友好度 88/100
-
[1.x Bug] run-operation --sql reports success but rolls back writes on transaction-capable adapters未关闭triage
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
area:cli bug good first issue priority:medium
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复