Package: react-wallet-kit
Overview
Creates new accounts in the specified wallet.- This function creates new wallet accounts based on the provided account parameters or address formats.
- If a walletId is provided, it creates the accounts in that specific wallet; otherwise, it uses the current session’s wallet.
- If a list of address formats is provided, it will create accounts in the wallet based on those formats, automatically determining the next available path indexes to avoid duplicates with existing accounts.
- If account parameters are provided, they are used directly for account creation.
- Automatically queries existing wallet accounts to prevent duplicate account creation for the same address format and path.
- Supports stamping the request with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).
Parameters
Response
A successful response returns the following fields:A promise that resolves to an array of addresses for the newly created accounts.