This project is a Node.js application that interacts with Biconomy SDK to test three different gasless transaction flows: ERC20, ERC721, and batch transactions. The application uses Biconomy's Meta Transaction API, which enables users to sign transactions using their private key and Biconomy relays those transactions on their behalf through Ethereum's account abstraction ERC-4337
- Clone the repository to your local machine.
- Run
yarn install
to install all the dependencies required for the application.
- Rename
.env.example
to.env
. - In the
.env
file, enter your Biconomy API key and secret, and your private key. - Update the
contractAddress
andcontractABI
variables in theindex.js
file with the address and ABI of the contract you want to interact with.
yarn start
-> Check SCW balanceyarn start
-> ERC-20 gasless transaction (send 1 USDC to recipient)yarn start
-> ERC-721 gasless transaction (send 1 NFT to recipient) *yarn start
-> gasless batch transaction (send 1 USDC to multiple recipients)
- The paymaster needs to be funded through the dashboard at https://dashboard.biconomy.io/
- The SCW must own the ERC20/ERC-721 assets to be transferred through gasless transactions