initImportWallet method
Initialize a new wallet import.
Sign the provided TInitImportWalletBody with the client's stamp function and submit the request (POST /public/v1/submit/init_import_wallet).
See also: stampInitImportWallet.
Implementation
Future<TInitImportWalletResponse> initImportWallet({
required TInitImportWalletBody 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_INIT_IMPORT_WALLET',
);
return await request<Map<String, dynamic>, TInitImportWalletResponse>(
"/public/v1/submit/init_import_wallet",
body,
(json) => TInitImportWalletResponse.fromJson(
transformActivityResponse(json, 'InitImportWallet')));
}