getAsset method

Future<Assets> getAsset({
  1. required String gateway,
  2. required String accessToken,
  3. required String did,
})

Implementation

Future<Assets> getAsset(
    {required String gateway,
    required String accessToken,
    required String did}) async {
  RubixServiceClient stub =
      getConnection(gateway: gateway, accessToken: accessToken);
  var response = await stub.getAsset(Empty());
  print("Get Balance Response:${response}");
  return response;
}