12 breaking releases

new 0.13.0 May 10, 2024
0.11.0 Apr 15, 2024
0.10.0 Mar 27, 2024
0.4.0 Oct 12, 2023
0.2.0 Mar 20, 2023

#2965 in Magic Beans

Download history 5/week @ 2024-01-28 116/week @ 2024-02-11 75/week @ 2024-02-18 64/week @ 2024-02-25 136/week @ 2024-03-03 41/week @ 2024-03-10 2/week @ 2024-03-17 111/week @ 2024-03-24 130/week @ 2024-03-31 1/week @ 2024-04-07 142/week @ 2024-04-14 24/week @ 2024-04-21 129/week @ 2024-04-28 57/week @ 2024-05-05

352 downloads per month

MIT/Apache

245KB
4K SLoC

BDK Electrum

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


lib.rs:

This crate is used for updating structures of bdk_chain with data from an Electrum server.

The two primary methods are ElectrumExt::sync and ElectrumExt::full_scan. In most cases ElectrumExt::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. ElectrumExt::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. For a sync or full scan the user receives relevant blockchain data and output updates for bdk_chain.

Refer to example_electrum for a complete example.

Dependencies

~13MB
~163K SLoC