Quick Start
Install Rust
See the Rust "Getting Started" page to install the Rust development tools.
Using BDK in a Rust project
Follow these steps to use BDK in your own rust project with the async esplora
blockchain client.
⚠ For now use the latest
master
branch versions of BDK crates.
- Create a new Rust project:
cargo init my_bdk_app cd my_bdk_app
- Add
bdk
to yourCargo.toml
file. Find the latestbdk@1
release oncrates.io
, for example:cargo add bdk@1.0.0-alpha.1
- Add other required dependencies:
cargo add bdk_esplora@0.3.0 cargo add bdk_file_store@0.2.0 cargo add tokio@1 --features "rt,rt-multi-thread,macros"
See the Wallet with Async Esplora tutorial for how to create and sync a wallet.
Contributing to BDK
To contribute to BDK first install the stable version of rust
, clone the repository master
branch and verify you can run the tests for all features.
- Clone the repo:
git clone https://github.com/bitcoindevkit/bdk.git cd bdk
- Build and run the tests:
cargo test --all-features