This project is a simple web application that allows users to swap tokens on the Base blockchain without having to pay for gas fees. It uses the Pimlico Paymaster and its Account Abstraction SDK to execute the swaps and WalletConnect to connect to the user's wallet.
To run this project, you will need to add the following environment variables to your .env file:
NEXT_PUBLIC_PIMLICO_API_KEY
- refer to the Pimlico dashboardNEXT_PUBLIC_SPONSORSHIP_POLICY_ID
- create a policy from the Pimlico dashboard and get its IDNEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
- refer to the WalletConnect dashboard`Install dependencies
npm install
Start development server
npm run dev