Build a scalable mass payments application using CDP Wallet API V2
With Wallet API, you can distribute payments to hundreds or even millions of recipients with just a few lines of code.
API Wallets empower you to orchestrate complex financial operations with ease and security, opening the doors to applications that were previously impractical.
This is a demo application of developer-custodied server wallet payments tool using the new CDP Wallets v2. Users can sign in with their Web2 authentication - email (currently powered by Google or Github) and send funds to other users via their emails. All emails are backed by Coinbase Server Wallets running on Base Sepolia. Users who don’t have an existing wallet have one created on send, and they can login and claim their wallet later.
This project leverages the Gaslite Drop contract from Pop Punk LLC Gaslite for mass transfers.
Special thanks to HeimLabs for foundational work on the original Paymaker frontend and backend that informed this sample app.
0. Deploy the Drop Contract
This application uses the Gaslite Drop smart contract for the batch transfers. The .env.example
file contains the contract address for the Gaslite Drop contract deployed on the Base Sepolia testnet. If you want to deploy your own contract, you can clone the Gaslite Core, and deploy by calling:
Note: you will need to have your Base Sepolia wallet private key in your env as PRIVATE_KEY
Set that output in the .env.local for JWT and CSRF token signing
The application will be available at http://localhost:3000.