/elrond-sdk-erdrs

Elrond Rust SDK for interacting with the Elrond Network and Smart Contracts.

Primary LanguageRust

Elrond SDK for Rust

Crates.io

Example

use elrond_sdk_erdrs::blockchain::rpc::{ElrondProxy, DEVNET_GATEWAY};

#[tokio::test]
async fn get_network_config() {
    let blockchain = ElrondProxy::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