#dharitri #tokio #api #smart-contracts #api-bindings #rpc #sdk

dharitri-sdk-moars

Dharitri Rust SDK for interacting with the Dharitri Network and Smart Contracts

2 releases

0.0.6 Feb 3, 2024
0.0.5 Feb 3, 2024

#24 in #dharitri

34 downloads per month
Used in dharitri-interact-snippet…

MIT license

260KB
6.5K SLoC

Dharitri SDK for Rust

Crates.io

Example

use dharitri_sdk_moars::blockchain::rpc::{DharitriProxy, DEVNET_GATEWAY};

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

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

More example in ./src/blockchain/tests.rs

Dependencies

~10–25MB
~370K SLoC