createWalletAccounts method
Future<TCreateWalletAccountsResponse>
createWalletAccounts({
- required TCreateWalletAccountsBody input,
Derive additional addresses using an existing wallet.
Sign the provided TCreateWalletAccountsBody with the client's stamp function and submit the request (POST /public/v1/submit/create_wallet_accounts).
See also: stampCreateWalletAccounts.
Implementation
Future<TCreateWalletAccountsResponse> createWalletAccounts({
required TCreateWalletAccountsBody 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_CREATE_WALLET_ACCOUNTS',
);
return await request<Map<String, dynamic>, TCreateWalletAccountsResponse>(
"/public/v1/submit/create_wallet_accounts",
body,
(json) => TCreateWalletAccountsResponse.fromJson(
transformActivityResponse(json, 'CreateWalletAccounts')));
}