When to use pre-generated wallets
Use pre-generated wallets when you need to:- Create wallets for users before they sign up or log in
- Prepare wallets in advance for a batch of users
- Set up wallets for users identified by email, phone, or other identifiers
- Create wallets programmatically from your backend
Prerequisites
Before creating pre-generated wallets, you need:- Your environment ID from the Dynamic dashboard URL
- A Dynamic API key:
- Go to Developers → SDK and API Key
- Create a new API key with appropriate permissions
Creating a pre-generated wallet
To create a pre-generated wallet, make a POST request to the Dynamic API:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
environmentId | string | Yes | Your Dynamic environment ID (found in the dashboard URL) |
identifier | string | Yes | The user identifier (email, phone, etc.) |
type | string | Yes | The type of identifier, either a social provider or another user identifier type. |
chains | array | Yes | Array of blockchain chains to create wallets for (e.g., [“EVM”]) |
Response
The API returns the created wallet information including:- Wallet address
- Chain details
- Wallet ID
- Creation timestamp