account/account.rs
1use multiversx_sdk::data::sdk_address::SdkAddress;
2use multiversx_sdk_http::{GatewayHttpProxy, DEVNET_GATEWAY};
3
4#[tokio::main]
5async fn main() {
6 let addr = SdkAddress::from_bech32_string(
7 "erd1qqqqqqqqqqqqqpgqfzydqmdw7m2vazsp6u5p95yxz76t2p9rd8ss0zp9ts",
8 )
9 .unwrap();
10
11 let blockchain = GatewayHttpProxy::new(DEVNET_GATEWAY.to_string());
12 let account = blockchain.get_account(&addr.0).await.unwrap();
13
14 println!("account: {account:#?}");
15}