exportWalletAccount method
Future<TExportWalletAccountResponse>
exportWalletAccount({
- required TExportWalletAccountBody input,
Export a wallet account.
Sign the provided TExportWalletAccountBody with the client's stamp function and submit the request (POST /public/v1/submit/export_wallet_account).
See also: stampExportWalletAccount.
Implementation
Future<TExportWalletAccountResponse> exportWalletAccount({
required TExportWalletAccountBody 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_ACCOUNT',
);
return await request<Map<String, dynamic>, TExportWalletAccountResponse>(
"/public/v1/submit/export_wallet_account",
body,
(json) => TExportWalletAccountResponse.fromJson(
transformActivityResponse(json, 'ExportWalletAccount')));
}