use std::error::Error; use algorand_rs::{kmd, mnemonic, MasterDerivationKey}; fn main() -> Result<(), Box> { let kmd_address = "http://localhost:8080"; let kmd_token = "contents-of-kmd.token"; let kmd_client = kmd::Client::new(kmd_address, kmd_token); let backup_phrase = "fire enlist diesel stamp nuclear chunk student stumble call snow flock brush example slab guide choice option recall south kangaroo hundred matrix school above zero"; let key_bytes = mnemonic::to_key(backup_phrase)?; let mdk = MasterDerivationKey(key_bytes); let create_wallet_response = kmd_client.create_wallet("testwallet", "testpassword", "sqlite", mdk)?; let wallet = create_wallet_response.wallet; println!("Created wallet {} with ID: {}", wallet.name, wallet.id); Ok(()) }