Overview
Pre-generate embedded wallets for your users before they sign in, enabling you to fund accounts with assets upfront for a seamless first-time experience.Why pre-generate wallets?
- Pre-load assets: Fund wallets with loyalty points, gas, or welcome NFTs before users sign in
- Zero-friction onboarding: Users see a ready-to-use wallet on first login instead of an empty account
- Targeted campaigns: Prepare wallets for specific users (by email or phone) before launching marketing campaigns
Prerequisites
Before pre-generating wallets, ensure you have:- A CDP API key configured
- The CDP SDK installed in your project
Usage
Use the CDP SDK to create an end user with a specific authentication method. Once created, you can fund the wallet address before the user ever signs in.Creating an end user
ThecreateEndUser method creates a new end user with an associated wallet. You specify the authentication method (email or SMS) that the user will use to sign in later.
- TypeScript
- Python