stampGetWalletAccounts method

Future<TSignedRequest> stampGetWalletAccounts({
  1. required TGetWalletAccountsBody input,
})

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

See also: GetWalletAccounts.

Implementation

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

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