getCoinbaseWallets method

Future<List<Wallet>> getCoinbaseWallets()

Get all Coinbase wallets

Gets all the user's available Coinbase wallets (These are the wallets/accounts that are used for buying and selling on www.coinbase.com)

https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getcoinbaseaccounts

Implementation

Future<List<Wallet>> getCoinbaseWallets() async {
  var response = await _coinbaseAccountsRestClient.getCoinbaseWallets();

  if (response.statusCode != 200) throw response;
  return listDecode(response.body)
      .map((hold) => Wallet.fromJson(hold))
      .toList();
}