35 releases (21 breaking)

new 0.22.0 Nov 26, 2024
0.20.0 May 28, 2024
0.19.0 Dec 20, 2023
0.18.0 Aug 5, 2023
0.1.0-beta.5 Mar 5, 2020

#1 in #electrum

Download history 4765/week @ 2024-08-05 7599/week @ 2024-08-12 7620/week @ 2024-08-19 8602/week @ 2024-08-26 6311/week @ 2024-09-02 6644/week @ 2024-09-09 7333/week @ 2024-09-16 7292/week @ 2024-09-23 5698/week @ 2024-09-30 6693/week @ 2024-10-07 7972/week @ 2024-10-14 7851/week @ 2024-10-21 5943/week @ 2024-10-28 8334/week @ 2024-11-04 8197/week @ 2024-11-11 7098/week @ 2024-11-18

29,844 downloads per month
Used in 55 crates (30 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.63.0.

To build with the MSRV you will need to pin dependencies as follows:

cargo update -p rustls --precise "0.23.17"

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–18MB
~208K SLoC