Future<int> getWalletBalance(String addressOrPublicKey) async { final wallet = await getWallet(addressOrPublicKey); return wallet != null ? int.parse(wallet.balance) : 0; }