#bitcoin #block-header #electrum #bp-electrum #electrum-api

bp-electrum

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

10 releases

0.12.0-beta.5 Feb 15, 2025
0.12.0-beta.4 Dec 23, 2024
0.11.1-alpha.1 Feb 19, 2025
0.11.0-beta.9.3 Dec 17, 2024
0.11.0-beta.5 Mar 19, 2024

#4 in #electrum

Download history 197/week @ 2024-12-21 36/week @ 2024-12-28 86/week @ 2025-01-04 319/week @ 2025-01-11 50/week @ 2025-01-18 248/week @ 2025-01-25 103/week @ 2025-02-01 80/week @ 2025-02-08 647/week @ 2025-02-15 197/week @ 2025-02-22 144/week @ 2025-03-01 32/week @ 2025-03-08 65/week @ 2025-03-15 59/week @ 2025-03-22 60/week @ 2025-03-29 393/week @ 2025-04-05

582 downloads per month
Used in 2 crates

MIT license

150KB
3.5K 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

~11–22MB
~277K SLoC