0. Prerequisites
This guide assumes that you have completed the Setup guide.1. Enable a user to log in via email
To authenticate a user via their email address, use the React SDK’suseLoginWithEmail hook.
sendCode and loginWithCode to authenticate your user per the instructions below.
Send an OTP
Send a one-time passcode (OTP) to the user’s email by passing their email address to thesendCode method returned from useLoginWithEmail:
2. Create an embedded wallet for the user
Your app can configure Privy to automatically create wallets for your users as part of their login flow. The embedded wallet will be generated and linked to the user object upon authentication. Alternatively your app can manually create wallets for users when required.Privy can provision wallets for your users on both Ethereum and Solana.
3. Send a transaction with the embedded wallet
- EVM
- Solana
With the users’ embedded wallet, your application can now prompt the user to sign and send transactions.

