File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ use bdk::Wallet;
4343use bdk::database::MemoryDatabase;
4444use bdk::blockchain::ElectrumBlockchain;
4545use bdk::SyncOptions;
46-
4746use bdk::electrum_client::Client;
47+ use bdk::bitcoin::Network;
4848
4949fn main() -> Result<(), bdk::Error> {
5050 let blockchain = ElectrumBlockchain::from(Client::new("ssl://electrum.blockstream.info:60002")?);
5151 let wallet = Wallet::new(
5252 "wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)",
5353 Some("wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/1/*)"),
54- bitcoin:: Network::Testnet,
54+ Network::Testnet,
5555 MemoryDatabase::default(),
5656 )?;
5757
You can’t perform that action at this time.
0 commit comments