getAssetsByAddress method

Future<List<AssetHolding>> getAssetsByAddress(
  1. String address, {
  2. int? assetId,
  3. bool? includeAll,
  4. int? perPage,
  5. CancelToken? cancelToken,
  6. ProgressCallback? onSendProgress,
  7. ProgressCallback? onReceiveProgress,
})

Get the assets owned of the given address. Given a specific account public key, this call returns the assets owned by the address.

Throws an AlgorandException if there is an HTTP error. Returns the assets.

Implementation

Future<List<AssetHolding>> getAssetsByAddress(
  String address, {
  int? assetId,
  bool? includeAll,
  int? perPage,
  CancelToken? cancelToken,
  ProgressCallback? onSendProgress,
  ProgressCallback? onReceiveProgress,
}) async {
  return _assetsApi.getAssetsByAddress(
    address,
    assetId: assetId,
    includeAll: includeAll,
    perPage: perPage,
    cancelToken: cancelToken,
    onSendProgress: onSendProgress,
    onReceiveProgress: onReceiveProgress,
  );
}