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