account/
account.rs

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