Skip to content

Commit 2afb4bb

Browse files
Merge pull request #1034 from Web3Auth/scw-lookup
Add SCW lookup documentation
2 parents b9ae897 + 265c684 commit 2afb4bb

File tree

2 files changed

+363
-17
lines changed

2 files changed

+363
-17
lines changed

docs/features/wallet-pregeneration.mdx

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,26 @@ description: "Wallet Pregeneration | Documentation - Web3Auth"
55
---
66

77
import PregenerateWallet from "@site/src/components/PregenerateWallet";
8+
import PregenrateSmartAccount from "@site/src/components/PregenrateSmartAccount";
89

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.
1315

1416
## Capabilities of Pre-generated Wallets
1517

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:
1820

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.
2628

2729
:::note
2830

@@ -32,10 +34,10 @@ environment is the **Scale Plan**.
3234

3335
:::
3436

35-
## Utilizing the Pre-generated Wallet API
37+
## Pre-generate EOA Wallets
3638

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
3941
independently by supplying their email or unique identifier to the API.
4042

4143
:::warning
@@ -49,7 +51,7 @@ Learn more about how
4951

5052
:::
5153

52-
### Implementation Steps:
54+
### Implementation Steps
5355

5456
1. **Identify Users:** Determine the unique identifier or email for the user within your system.
5557
This will be the `verifierId` used to create the wallet.
@@ -60,3 +62,21 @@ Learn more about how
6062
by the user upon their first login.
6163

6264
<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

Comments
 (0)