createWallet
Creates a new wallet and generates addresses for supported chains.
Function Signature
Parameters
usingProgressCallback
: An optional callback for tracking the progress of wallet creation. It receives anMpcStatus
object with the followingstatuses
:generatingShare
: Creating the initial shareparsingShare
: Processing the share datastoringShare
: Saving the encrypted sharedone
: Process completed
done
: Boolean indicating whether the whole operation is complete
Returns
PortalCreateWalletResponse
: Contains the following:ethereum
: Generated Ethereum addresssolana
: Generated Solana address
Throws
PortalClassError.cannotCreateWallet
: If the wallet creation process fails.
Example Usage
Last updated
Was this helpful?