Add wallet commands that returns a list of unused addresses
Mantenedores costumam responder em até 3 dias
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 38/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Rust
- Estrelas
- 142
- Forks
- 103
- Merge médio
- 5d 12h
- PRs com merge (30d)
- 6
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de bitcoindevkit/bdk-cli
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
bitcoindevkit/bdk-cli#357 ·
Mantenedores costumam responder em até 3 dias
-
Remove "wallet" field from `WalletConfigInner`Talvez já em andamento @Jennycj assumiu há 5 dias. Abertaenhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
bitcoindevkit/bdk-cli#332 · 2 comentários ·
Mantenedores costumam responder em até 3 dias
-
`warn!` output is invisible unless `RUST_LOG` is setTalvez já em andamento @chukwudiikeh assumiu há 3 dias. Aberta
bitcoindevkit/bdk-cli#352 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 3 dias
-
`compile` doesn't validate keys and returns unusable descriptorsTalvez já em andamento @Olorunshogo assumiu há 8 dias. Abertaenhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
bitcoindevkit/bdk-cli#344 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 50/100
bitcoindevkit/bdk-cli#340 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
Todas as issues de bitcoindevkit/bdk-cli
Issues semelhantes
-
founders_reward panics on a configured Testnet when the slow-start subsidy is not a multiple of 5Abertaexternal-contribution
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ZcashFoundation/zebra#11792 ·
Mantenedores costumam responder em até 1 dia
-
area/cli bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
bherbruck/solvecraft#2167 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
Wavvon/Wavvon-clients#136 ·
Mantenedores costumam responder em até 1 dia