exportWallet method
Export a wallet.
Sign the provided TExportWalletBody with the client's stamp function and submit the request (POST /public/v1/submit/export_wallet).
See also: stampExportWallet.
Implementation
Future<TExportWalletResponse> exportWallet({
required TExportWalletBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_EXPORT_WALLET',
);
return await request<Map<String, dynamic>, TExportWalletResponse>(
"/public/v1/submit/export_wallet",
body,
(json) => TExportWalletResponse.fromJson(
transformActivityResponse(json, 'ExportWallet')));
}