#bitcoin #electrum #block-header

bp-electrum

Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers.

12 releases

new 0.12.0-beta.6 May 1, 2025
0.12.0-beta.5 Feb 15, 2025
0.12.0-beta.4 Dec 23, 2024
0.11.1-alpha.2+unreviewed May 1, 2025
0.11.0-beta.5 Mar 19, 2024

#289 in Magic Beans

Download history 311/week @ 2025-01-10 50/week @ 2025-01-17 248/week @ 2025-01-24 111/week @ 2025-01-31 73/week @ 2025-02-07 609/week @ 2025-02-14 250/week @ 2025-02-21 146/week @ 2025-02-28 30/week @ 2025-03-07 68/week @ 2025-03-14 53/week @ 2025-03-21 60/week @ 2025-03-28 337/week @ 2025-04-04 130/week @ 2025-04-11 108/week @ 2025-04-18 487/week @ 2025-04-25

1,070 downloads per month
Used in 2 crates

MIT license

170KB
4K SLoC

This library provides an extendable Bitcoin-Electrum client that supports batch calls, notifications and multiple transport methods.

By default this library is compiled with support for SSL servers using rustls and support for plaintext connections over a socks proxy, useful for Onion servers. Using different features, the SSL implementation can be removed or replaced with openssl.

A minimal configuration is also provided, which only includes the plaintext TCP client.

Example

use electrum::{Client, ElectrumApi};

let mut client = Client::new("tcp://electrum.blockstream.info:50001")?;
let response = client.server_features()?;

rust-electrum-client Build Status Latest Version

Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers.

Dependencies

~9–20MB
~259K SLoC