Crates.io | dharitri-sdk-moars |
lib.rs | dharitri-sdk-moars |
version | 0.0.6 |
source | src |
created_at | 2024-02-03 10:04:18.046488 |
updated_at | 2024-02-03 10:09:46.685593 |
description | Dharitri Rust SDK for interacting with the Dharitri Network and Smart Contracts. |
homepage | https://github.com/Battula-anil-app-could/dharitri-sdk-moars |
repository | https://github.com/Battula-anil-app-could/dharitri-sdk-moars |
max_upload_size | |
id | 1125266 |
size | 257,469 |
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