stampListWebhookEndpoints method

Future<TSignedRequest> stampListWebhookEndpoints({
  1. required TListWebhookEndpointsBody input,
})

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

See also: ListWebhookEndpoints.

Implementation

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

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