stampGetWalletAccount method

Future<TSignedRequest> stampGetWalletAccount({
  1. required TGetWalletAccountBody input,
})

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

See also: GetWalletAccount.

Implementation

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

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