multiversx-sdk-http 0.14.2

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

#[tokio::main]
async fn main() {
    let blockchain = GatewayHttpProxy::new(DEVNET_GATEWAY.to_string());
    let result = blockchain
        .get_hyper_block_by_hash("d59e0dc7d407b1175655357cb8056ec3bb77961192753cddda2fb700c6ce71c6")
        .await;

    assert!(result.is_ok());
    println!("block by hash result: {result:#?}");
}