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

electrum-client-netagnostic

Electrum client library that is network agnostic. Supports plaintext, TLS and Onion servers.

1 unstable release

Uses old Rust 2015

0.19.0 Sep 2, 2024

#1571 in Network programming

Download history 128/week @ 2024-08-29 21/week @ 2024-09-05

149 downloads per month

MIT license

105KB
2.5K SLoC

Network agnostic electrun client.

This is a fork of electrum-client crate with the dependency to bitcoin removed.

Network agnostic 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

~0.8–10MB
~119K SLoC