license = "MIT"
[dependencies]
-bdk = { version = "^0.7", default-features = false, features = ["all-keys"]}
+bdk = { version = "0.10.0", default-features = false, features = ["all-keys"]}
bdk-macros = "^0.4"
structopt = "^0.3"
serde_json = { version = "^1.0" }
cli = ["bdk/key-value-db", "clap", "dirs-next", "env_logger"]
repl = ["regex", "rustyline"]
electrum = ["bdk/electrum"]
-esplora = ["bdk/esplora"]
+esplora = ["bdk/use-esplora-ureq"]
compiler = ["bdk/compiler"]
async-interface = ["bdk/async-interface"]
compact_filters = ["bdk/compact_filters"]
let mut tx_builder = wallet.build_tx();
if send_all {
- tx_builder
- .drain_wallet()
- .set_single_recipient(recipients[0].0.clone());
+ tx_builder.drain_wallet().drain_to(recipients[0].0.clone());
} else {
tx_builder.set_recipients(recipients);
}
tx_builder.fee_rate(FeeRate::from_sat_per_vb(fee_rate));
if send_all {
- tx_builder.maintain_single_recipient()?;
+ // TODO: Find a way to get the recipient scriptpubkey to allow shrinking
+ //tx_builder.allow_shrinking()
}
if offline_signer {