get_hyper_block_by_hash/
get_hyper_block_by_hash.rs

1use multiversx_sdk_http::{GatewayHttpProxy, DEVNET_GATEWAY};
2
3#[tokio::main]
4async fn main() {
5    let blockchain = GatewayHttpProxy::new(DEVNET_GATEWAY.to_string());
6    let result = blockchain
7        .get_hyper_block_by_hash("d59e0dc7d407b1175655357cb8056ec3bb77961192753cddda2fb700c6ce71c6")
8        .await;
9
10    assert!(result.is_ok());
11    println!("block by hash result: {result:#?}");
12}