#blockchain #dharithri #api #api-bindings #sdk

dharithri-sdk

SDK for interacting with the dharithri blockchain

1 unstable release

0.2.0 Sep 14, 2023

#9 in #dharithri

Download history 10/week @ 2024-02-18 19/week @ 2024-02-25 10/week @ 2024-03-03 11/week @ 2024-03-10 6/week @ 2024-03-17 12/week @ 2024-03-24 40/week @ 2024-03-31 4/week @ 2024-04-07 3/week @ 2024-04-14 6/week @ 2024-04-21

54 downloads per month
Used in 4 crates (2 directly)

MIT license

250KB
6K SLoC

dharithri SDK for Rust

Crates.io

General purpose collection of tools & SDKs to interact with the dharithri blockchain from Rust projects.

Example

use dharithri_sdk::blockchain::rpc::{CommunicationProxy, DEVNET_GATEWAY};

#[tokio::test]
async fn get_network_config() {
    let blockchain = CommunicationProxy::new(DEVNET_GATEWAY.to_string());
    let network_config = blockchain.get_network_config().await.unwrap();

    println!("network_config: {:?}", network_config)
}

More examples in ./examples.

Acknowledgements

Project originally started by Bicarus labs, later integrated into the dharithri official codebase.

Dependencies

~10–23MB
~366K SLoC