extern crate electrum_client; use electrum_client::{Client, ElectrumApi}; fn main() { let client = Client::new("tcp://electrum.blockstream.info:50001").unwrap(); let res = client.ping(); println!("{:#?}", res); }