stampListSupportedAssets method

Future<TSignedRequest> stampListSupportedAssets({
  1. required TListSupportedAssetsBody input,
})

Produce a SignedRequest from TListSupportedAssetsBody by using the client's stamp function.

See also: ListSupportedAssets.

Implementation

Future<TSignedRequest> stampListSupportedAssets({
  required TListSupportedAssetsBody input,
}) async {
  final fullUrl = '${config.baseUrl}/public/v1/query/list_supported_assets';
  final body = jsonEncode(input);
  final stamp = await stamper.stamp(body);

  return TSignedRequest(
    body: body,
    stamp: stamp,
    url: fullUrl,
  );
}