electrum_jsonrpc

Crates.ioelectrum_jsonrpc
lib.rselectrum_jsonrpc
version0.4.6
sourcesrc
created_at2021-02-16 17:15:51.912228
updated_at2021-06-14 16:14:06.664991
descriptionSimple library for interaction with Electron client daemon through json-rpc.
homepage
repositoryhttps://github.com/ChzenChzen/electrum_jsonrpc
max_upload_size
id356088
size31,017
(ChzenChzen)

documentation

README

Simple library for interaction with Electron client daemon through json-rpc

 use electrum_jsonrpc::Electrum;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Sync + Send>> {
    let client = Electrum::new(
        "dummy_login".to_string(),
        "dummy_password".to_string(),
        "http://127.0.0.1:7000".to_string(),
    )?;

    let resp = client.get_help().await?;

    Ok(())
}
Commit count: 108

cargo fmt