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
155 downloads per month
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 txid
s and no full transactions. The caller is responsible
for obtaining full transactions before applying. This can be done with
these steps:
-
Determine which full transactions are missing. The method
missing_full_txs
ofElectrumUpdate
can be used. -
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