getWallet method

Future<Wallet> getWallet(
  1. String id
)
inherited

Get a specific wallet by ID

Implementation

Future<Wallet> getWallet(String id) {
  return getWallets(ids: [id]).then((wallets) {
    if (wallets.isEmpty) {
      throw Exception('Wallet with id $id not found');
    }
    return wallets.first;
  });
}