1use multiversx_sdk_http::*;
2
3#[tokio::main]
4async fn main() {
5 let tx_hash = "dd810b6daeed111d5425cdbb47e2b125694580012c8682d155117d2967a549cb";
6 let blockchain = GatewayHttpProxy::new(MAINNET_GATEWAY.to_string());
7
8 let status = blockchain.get_transaction_status(tx_hash).await;
9 assert!(status.is_ok());
10 println!("tx status: {status:?}");
11
12 let tx = blockchain.get_transaction_info(tx_hash).await;
13 assert!(tx.is_ok());
14 println!("tx: {tx:#?}");
15
16 let tx = blockchain.get_transaction_info_with_results(tx_hash).await;
17 assert!(tx.is_ok());
18 println!("tx with results: {tx:#?}");
19}