get_hyper_block_by_nonce/get_hyper_block_by_nonce.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.get_hyper_block_by_nonce(7468).await;
7
8 assert!(result.is_ok());
9 println!("block by nonce result: {result:#?}")
10}