36 releases (22 breaking)

0.23.0 Feb 4, 2025
0.22.0 Nov 26, 2024
0.21.0 Aug 6, 2024
0.20.0 May 28, 2024
0.1.0-beta.5 Mar 5, 2020

#1 in #electrum

Download history 5943/week @ 2024-10-28 8334/week @ 2024-11-04 8197/week @ 2024-11-11 7098/week @ 2024-11-18 5368/week @ 2024-11-25 8887/week @ 2024-12-02 9011/week @ 2024-12-09 7316/week @ 2024-12-16 2408/week @ 2024-12-23 2494/week @ 2024-12-30 7234/week @ 2025-01-06 7841/week @ 2025-01-13 7571/week @ 2025-01-20 8388/week @ 2025-01-27 9919/week @ 2025-02-03 9278/week @ 2025-02-10

35,527 downloads per month
Used in 63 crates (29 directly)

MIT license

155KB
3.5K SLoC

rust-electrum-client

Build Status Latest Version MSRV Badge

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

Minimum Supported Rust Version (MSRV)

This library should compile with any combination of features with Rust 1.75.0.


lib.rs:

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::{Client, ElectrumApi};

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

Dependencies

~8–19MB
~211K SLoC