Creating WaaS wallet accounts when user signs up
We provide a helper method for you to check which chains are missing WaaS wallet accounts and create them if needed.Usage
Creating WaaS wallet accounts once user already has WaaS wallet accounts
You can pass an array of chains to thecreateWaasWalletAccounts
method to create wallet accounts for those chains.
If the same chain is passed multiple times, just as many wallet accounts will be created for that chain
Usage
In this example, we are creating 2 EVM wallet accounts and 1 SOL wallet account, no matter what other WaaS wallet accounts the user already has.Error Handling
- If you didn’t add the required WaaS extensions for the chains that you are trying to create wallet accounts for, it will throw a
NoWalletProviderFoundError
.