get_hyper_block_latest/
get_hyper_block_latest.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_latest_hyper_block_nonce().await;
7
8    assert!(result.is_ok());
9    println!("latest block result: {result:?}")
10}