18 breaking releases

0.19.0 Oct 2, 2024
0.17.1 Sep 13, 2024
0.16.0 Jul 22, 2024
0.10.0 Mar 27, 2024
0.2.0 Mar 20, 2023

#5 in #bdk

Download history 100/week @ 2024-07-19 22/week @ 2024-07-26 28/week @ 2024-08-02 13/week @ 2024-08-09 87/week @ 2024-08-16 920/week @ 2024-08-23 855/week @ 2024-08-30 1037/week @ 2024-09-06 973/week @ 2024-09-13 485/week @ 2024-09-20 422/week @ 2024-09-27 706/week @ 2024-10-04 534/week @ 2024-10-11 762/week @ 2024-10-18 492/week @ 2024-10-25 833/week @ 2024-11-01

2,730 downloads per month
Used in hash_pool

MIT/Apache

62KB
1K SLoC

BDK Electrum

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


lib.rs:

This crate is used for returning updates from Electrum servers.

Updates are returned as either a SyncResult (if [BdkElectrumClient::sync()] is called), or a FullScanResult (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
~210K SLoC