Allow users to use your app via guest wallets without signing up.
isGuestModeEnabled
) in your ParaProvider
configuration to true
.This setting adds a “Continue as Guest” option to the modal sign-in screen, which closes the modal and performs wallet setup in the background. If the modal is reopened, guest users will see a special version of the account screen, from which they can proceed to finish signing up and then claim their existing wallets.useCreateGuestWalletsState
hook. For example, you will likely want to block any signing-related interface actions until the wallets have been created.
useCreateGuestWallets
hook will not reliably reflect the status of the Para Modal’s guest wallet creation process. To monitor the modal operation’s status from the rest of your app, you must instead use useCreateGuestWalletsState
. The hook’s return type resembles React Query’s UseMutationReturnType
type and has most of the same fields.getUserShare
and setUserShare
to save and restore the user share for a guest wallet, just as you would for a pre-generated wallet.