3 releases (breaking)

0.3.0 Jul 19, 2023
0.2.0 Mar 20, 2023
0.1.0 Feb 27, 2023

#2345 in Magic Beans

Download history 2/week @ 2023-05-27 2/week @ 2023-06-03 3/week @ 2023-06-10 4/week @ 2023-06-17 3/week @ 2023-06-24 21/week @ 2023-07-15 2/week @ 2023-07-22 3/week @ 2023-07-29 97/week @ 2023-08-05 144/week @ 2023-08-12 21/week @ 2023-08-19 49/week @ 2023-08-26 32/week @ 2023-09-02 26/week @ 2023-09-09

155 downloads per month

MIT/Apache

160KB
3K SLoC

BDK Electrum

BDK Electrum client library for updating the keychain tracker.


lib.rs:

This crate is used for updating structures of the bdk_chain crate with data from electrum.

The star of the show is the ElectrumExt::scan method, which scans for relevant blockchain data (via electrum) and outputs an ElectrumUpdate.

An ElectrumUpdate only includes txids and no full transactions. The caller is responsible for obtaining full transactions before applying. This can be done with these steps:

  1. Determine which full transactions are missing. The method missing_full_txs of ElectrumUpdate can be used.

  2. Obtaining the full transactions. To do this via electrum, the method batch_transaction_get can be used.

Refer to bdk_electrum_example for a complete example.

Dependencies

~12MB
~160K SLoC