Installation
Setup Instructions
1
Create Turnkey Organization
- Visit the Turnkey Dashboard
- Create a new organization or select an existing one
- Navigate to the organization settings
- Copy your Organization ID from the dashboard
2
Configure Auth Proxy
- Navigate to the Wallet Kit section in the Turnkey Dashboard and enable the Auth Proxy.
- Customize auth methods such as email OTP and passkey.
- Copy the Auth Proxy Config ID
3
Get Gelato API Key
- Visit the Gelato App
- Navigate to
Paymaster & Bundler > API Keys
- Create a new API Key and select your required networks
- Copy the generated API Key
4
Set Environment Variables
Create a
.env.local
file in your project root:Implementation
1
Import Dependencies
2
Configure Providers
3
Create Custom Account Utility
4
Create Smart Wallet Client
5
Execute Transactions
Execute transactions using different payment methods:
- Sponsored
- ERC-20
- Native