Skip to content

Commit 3b22c8d

Browse files
w0xltthunderbiscuit
authored andcommitted
Update BDK version and the sample code
1 parent 82e41de commit 3b22c8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ Most Rust projects use Cargo to download and build the libraries the code depend
1818

1919
```
2020
[dependencies]
21-
bdk = "0.20.0"
21+
bdk = "0.28.1"
2222
```
2323

2424
Or it is possible to install only the features that will be used in the project.
2525

2626
```
2727
[dependencies]
28-
bdk = { version = "0.20.0", default-feature = false, features = ["all-keys", "key-value-db", "rpc"] }
28+
bdk = { version = "0.28.1", default-feature = false, features = ["all-keys", "key-value-db", "rpc"] }
2929
```
3030

3131
BDK uses a set of [feature flags](https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section) to reduce the amount of compiled code by allowing projects to only enable the features they need.
@@ -74,7 +74,7 @@ To be able to run this code, the `bdk` dependency in `Cargo.toml` must be set as
7474

7575
```
7676
[dependencies]
77-
bdk = { version = "0.15.0", default-feature = false, features = ["all-keys"] }
77+
bdk = { version = "0.28.1", default-feature = false, features = ["all-keys"] }
7878
```
7979

8080
```rust
@@ -101,7 +101,7 @@ fn main() {
101101
let xprv = xkey.into_xprv(network).unwrap();
102102

103103
// Create a BDK wallet structure using BIP 84 descriptor ("m/84h/1h/0h/0" and "m/84h/1h/0h/1")
104-
let wallet = Wallet::new_offline(
104+
let wallet = Wallet::new(
105105
Bip84(xprv, KeychainKind::External),
106106
Some(Bip84(xprv, KeychainKind::Internal)),
107107
network,

0 commit comments

Comments
 (0)