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

yanked dharitri-sdk-erdrs

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

4 releases

0.2.0 Feb 2, 2024
0.0.4 Feb 3, 2024
0.0.3 Feb 2, 2024
0.0.2 Feb 2, 2024

#34 in #dharitri

26 downloads per month

MIT license

260KB
6.5K SLoC

Dharitri SDK for Rust

Crates.io

Example

use dharitri_sdk_erdrs::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
~371K SLoC