Installation
Setup Instructions
1
Create Coinbase CDP Project
- Visit the Coinbase CDP Portal
- Create a new project or select an existing one
- Configure your project settings
- Copy your Project ID from project settings
2
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
3
Set Environment Variables
Create a
.env.local file in your project root:Implementation
1
Import Dependencies
2
Configure Providers
Set up the CDP React Provider in your app:
3
Create Bundler Client
Set up your component to use Coinbase CDP hooks and create a bundler client:
4
Send User Operations
Send sponsored user operations using the bundler client: