portal.createWallet command initiates the MPC process to create a set of shares for each curve we support (SECP256K1 for EVM, Bitcoin and Tron, ED25519 for Solana and Stellar). The users’ shares are automatically stored in the user’s secure phone storage using your configured mobile storage adapter.
createWallet returns the wallet’s available addresses by namespace. Only eip155 is guaranteed to be present — read the other namespaces optionally, and note that Bitcoin addresses are nested by script type and network. See AddressesByNamespace for the full shape.
Choosing an Implementation
Now that you’ve generated a wallet, it’s time to choose a Portal implementation for your app! We provide ready-to-use components that are able to be plugged in to your mobile app. We also provide the functions that power those components for you to build your own experience powered by Portal.WARNING: To create a wallet with the Portal SDK, your device must be configured to use passcode authentication. If you change your passcode, your Portal wallet will continue to operate as expected. However, if you disable passcode authentication after running the
createWallet function, you will be required to execute the recover function before you can continue using your Portal wallet.