multiversx-sdk-http 0.15.1

SDK for interacting with the MultiversX blockchain
Documentation
1
2
3
4
5
6
7
8
9
10
use multiversx_sdk_http::{DEVNET_GATEWAY, GatewayHttpProxy};

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

    assert!(!network_config.chain_id.is_empty());
    println!("network_config: {network_config:#?}")
}