stampGetAuthenticators method

Future<TSignedRequest> stampGetAuthenticators({
  1. required TGetAuthenticatorsBody input,
})

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

See also: GetAuthenticators.

Implementation

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

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