Add wallet commands that returns a list of unused addresses
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 142
- Fork
- 103
- Merge medio
- 5g 21h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bitcoindevkit/bdk-cli
-
Remove "wallet" field from `WalletConfigInner`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bitcoindevkit/bdk-cli#332 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
`compile` doesn't validate keys and returns unusable descriptorsForse già presa @Olorunshogo l’ha presa 4 giorni fa. Apertaenhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
bitcoindevkit/bdk-cli#344 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
bitcoindevkit/bdk-cli#340 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Enforce Core-compatible OP_RETURN / datacarrier and standard tx-size limits in create_txForse già presa @tvpeter l’ha presa 17 giorni fa. Apertaenhancement
bitcoindevkit/bdk-cli#339 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
bitcoindevkit/bdk-cli#338 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di bitcoindevkit/bdk-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
storytold/photocraft#5260 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
extendr/extendr.github.io#134 ·
-
awaiting-response bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
wildcard/caro#1655 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno