#dharitri #blockchain #api #sdk #api-bindings

dharitri-sdk-http

SDK for interacting with the Dharitri blockchain

1 stable release

new 1.0.1 Jan 20, 2025

#534 in Magic Beans

Download history 112/week @ 2025-01-19

112 downloads per month
Used in dharitri-sc-snippets

MIT and GPL-3.0-only

310KB
7.5K SLoC

Dharitri SDK for Rust

Crates.io

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

Example

use dharitri_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.

Dependencies

~13–26MB
~414K SLoC