Registry / crypto / bdk
library0.30.2rscratesunverified

A modern, lightweight, descriptor-based wallet library.

# Cargo.toml [dependencies] bdk = "0.30.2"
INSTALL
IMPORT
SIG · BDK
B
bdk
cryptorustv0.30.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Wallet
use bdk::Wallet;

Creates a Bitcoin wallet from a descriptor and queries balance.

use bdk::Wallet; use bdk::bitcoin::Network; fn main() { let wallet = Wallet::new("wpkh([c258d2e4/84h/1h/0h]tpubDD...)", None, Network::Testnet).unwrap(); println!("Balance: {:?}", wallet.get_balance()); }
Debug
Known issues
gotchaRequires a descriptor string; incorrect descriptors cause runtime errors.
fix
Use valid output descriptors from Bitcoin Core or generated by bdk.
affects: >=0.30.0
Upgrade
Version history
0.30.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Resources
bdk — cargo add bdk · libregistry