dharithri-sdk

SDK for interacting with the dharithri blockchain

1 unstable release

0.2.0 Sep 14, 2023


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
~333K SLoC