@@ -5,24 +5,26 @@ description: "Wallet Pregeneration | Documentation - Web3Auth"
5
5
---
6
6
7
7
import PregenerateWallet from " @site/src/components/PregenerateWallet" ;
8
+ import PregenrateSmartAccount from " @site/src/components/PregenrateSmartAccount" ;
8
9
9
- Pre-generated wallets are a strategic feature within Web3Auth, designed to streamline the onboarding
10
- process by allowing developers to create wallet addresses for users before their initial login. This
11
- feature offers flexibility in how and when you introduce users to wallet functionalities, enhancing
12
- the user experience and engagement.
10
+ Pre-generated wallets are a key feature of Web3Auth, aimed at simplifying user onboarding. This
11
+ functionality enables developers to generate both EOA wallet addresses and Smart Accounts (ERC-4337)
12
+ for users before their first login. By providing this flexibility, you can tailor when and how users
13
+ are introduced to wallet functionalities, ultimately enhancing their experience and boosting
14
+ engagement.
13
15
14
16
## Capabilities of Pre-generated Wallets
15
17
16
- The ability to pre-generate wallets opens up a variety of use cases, making it easier to integrate
17
- Web3 features into your application's user journey:
18
+ The ability to pre-generate wallets unlocks diverse use cases, making it seamless to integrate Web3
19
+ features into your application's user journey:
18
20
19
- - ** Early Wallet Creation: ** Initiate wallet creation as part of the user invite or onboarding flow,
20
- even before the user has logged into your app for the first time .
21
- - ** Deferred Login Setup: ** Delay the setup of wallet access management, such as OAuth login or
22
- passkeys, until the user is ready for their first on-chain transaction, simplifying initial
23
- engagement.
24
- - ** Wallet Prefunding: ** Reward users with tokens for off-chain activities, allowing them to claim
25
- these rewards when they access their pre-generated wallet.
21
+ 1 . ** Early Wallet Creation** : Create wallets during the user invite or onboarding process, even
22
+ before their first login, ensuring a smoother start to their Web3 experience .
23
+ 2 . ** Deferred Login Setup** : Postpone wallet access management, such as OAuth logins or passkeys,
24
+ until the user is ready to perform their first on-chain transaction, reducing initial friction.
25
+ 3 . ** Wallet Prefunding ** : Incentivize users by preloading wallets with token rewards for off-chain
26
+ activities, enabling them to easily claim these rewards upon accessing their pre-generated
27
+ wallet.
26
28
27
29
:::note
28
30
@@ -32,10 +34,10 @@ environment is the **Scale Plan**.
32
34
33
35
:::
34
36
35
- ## Utilizing the Pre-generated Wallet API
37
+ ## Pre-generate EOA Wallets
36
38
37
- Web3Auth provides a straightforward API to facilitate the creation of pre-generated wallets. You can
38
- integrate this API into your user signup flow, either after a user verifies their email or
39
+ Web3Auth provides a straightforward API to facilitate the creation of pre-generated EOA wallets. You
40
+ can integrate this API into your user signup flow, either after a user verifies their email or
39
41
independently by supplying their email or unique identifier to the API.
40
42
41
43
:::warning
@@ -49,7 +51,7 @@ Learn more about how
49
51
50
52
:::
51
53
52
- ### Implementation Steps:
54
+ ### Implementation Steps
53
55
54
56
1 . ** Identify Users:** Determine the unique identifier or email for the user within your system.
55
57
This will be the ` verifierId ` used to create the wallet.
@@ -60,3 +62,21 @@ Learn more about how
60
62
by the user upon their first login.
61
63
62
64
<PregenerateWallet />
65
+
66
+ ## Pre-generate Smart Accounts
67
+
68
+ Web3Auth provides a straightforward API to facilitate the creation of pre-generated Smart Accounts.
69
+ You can integrate this API into your user signup flow, either after a user verifies their email or
70
+ independently by supplying their email or unique identifier to the API.
71
+
72
+ ### Implementation Steps
73
+
74
+ 1 . ** Identify Users:** Determine the unique identifier or email for the user within your system.
75
+ This will be the ` verifierId ` used to create the wallet.
76
+ 2 . ** API Call:** Use the provided API to submit the user's identifier. You'll need to specify
77
+ parameters from the Web3Auth dashboard, specifically the Verifier Name, Web3Auth Network, and
78
+ Client Id.
79
+ 3 . ** Receive Wallet Address:** The API response will include the new wallet address, ready for use
80
+ by the user upon their first login.
81
+
82
+ <PregenrateSmartAccount />
0 commit comments