stampGetAuthenticator method

Future<TSignedRequest> stampGetAuthenticator({
  1. required TGetAuthenticatorBody input,
})

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

See also: GetAuthenticator.

Implementation

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

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