20 breaking releases

0.21.0 Feb 5, 2025
0.20.1 Dec 19, 2024
0.19.0 Oct 2, 2024
0.16.0 Jul 22, 2024
0.2.0 Mar 20, 2023

#11 in #electrum

Download history 513/week @ 2024-12-02 1062/week @ 2024-12-09 1004/week @ 2024-12-16 55/week @ 2024-12-23 181/week @ 2024-12-30 813/week @ 2025-01-06 611/week @ 2025-01-13 1025/week @ 2025-01-20 865/week @ 2025-01-27 1982/week @ 2025-02-03 727/week @ 2025-02-10 1988/week @ 2025-02-17 3282/week @ 2025-02-24 2161/week @ 2025-03-03 3855/week @ 2025-03-10 2036/week @ 2025-03-17

11,383 downloads per month
Used in 2 crates

MIT/Apache

66KB
1K SLoC

BDK Electrum

BDK Electrum extends electrum-client to update bdk_chain structures from an Electrum server.

Minimum Supported Rust Version (MSRV)

This crate has a MSRV of 1.75.0.

To build with MSRV you will need to pin dependencies as follows:

cargo update -p home --precise "0.5.9"

lib.rs:

This crate is used for returning updates from Electrum servers.

Updates are returned as either a SyncResponse (if [BdkElectrumClient::sync()] is called), or a FullScanResponse (if [BdkElectrumClient::full_scan()] is called).

In most cases [BdkElectrumClient::sync()] is used to sync the transaction histories of scripts that the application cares about, for example the scripts for all the receive addresses of a Wallet's keychain that it has shown a user.

BdkElectrumClient::full_scan is meant to be used when importing or restoring a keychain where the range of possibly used scripts is not known. In this case it is necessary to scan all keychain scripts until a number (the "stop gap") of unused scripts is discovered.

Refer to example_electrum for a complete example.

Dependencies

~8–18MB
~212K SLoC