- Install anvil
https://book.getfoundry.sh/anvil/
- Run anvil node with prague fork
anvil --hardfork prague
- Copy the first (0-index) signer private key to backend
.env
cd contracts
npm install
npx hardhat run ./scripts/deploy.ts
npx hardhat run ./scripts/initSponsor.ts
Then copy the deployed address (Token1, Token2, BatchCallDelegation) to backend .env
cd backend
npm install
ts-node ./src/index.ts
cd frontend
npm install
npm run dev
Go to http://localhost:3001
- Batch call
- Sponsored transaction
- EIP-7702