1use dharitri_sdk::data::sdk_address::SdkAddress;
2use dharitri_sdk_http::{GatewayHttpProxy, DEVNET_GATEWAY};
3
4#[tokio::main]
5async fn main() {
6 let addr = SdkAddress::from_bech32_string(
7 "drt1qqqqqqqqqqqqqpgqfzydqmdw7m2vazsp6u5p95yxz76t2p9rd8ssj7kxgw",
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 assert!(account.address.to_bech32_string().is_ok());
15 println!("account: {account:#?}");
16}