account_storage/
account_storage.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        "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th".to_owned(),
8    );
9
10    let blockchain = GatewayHttpProxy::new(DEVNET_GATEWAY.to_string());
11    let account_storage = blockchain.get_account_storage_keys(&addr).await.unwrap();
12
13    assert!(!account_storage.is_empty());
14    println!("Account Storage: {account_storage:#?}");
15}