stampGetWallet method

Future<TSignedRequest> stampGetWallet({
  1. required TGetWalletBody input,
})

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

See also: GetWallet.

Implementation

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

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