#bitcoin #electrum #plain-text #onion #tls #server #sock

electrum-client

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

32 releases (18 breaking)

Uses old Rust 2015

0.19.0 Dec 20, 2023
0.18.0 Aug 5, 2023
0.17.0 Jul 14, 2023
0.13.0 Mar 11, 2023
0.1.0-beta.5 Mar 5, 2020

#1077 in Magic Beans

Download history 3254/week @ 2024-01-01 5521/week @ 2024-01-08 6134/week @ 2024-01-15 6166/week @ 2024-01-22 7163/week @ 2024-01-29 5618/week @ 2024-02-05 7454/week @ 2024-02-12 8116/week @ 2024-02-19 9156/week @ 2024-02-26 9973/week @ 2024-03-04 7046/week @ 2024-03-11 7356/week @ 2024-03-18 6908/week @ 2024-03-25 4559/week @ 2024-04-01 5656/week @ 2024-04-08 7126/week @ 2024-04-15

24,505 downloads per month
Used in 49 crates (30 directly)

MIT license

150KB
3K SLoC

rust-electrum-client Build Status Latest Version

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


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

~7–19MB
~207K SLoC