This repository contains example scripts to do transactions using account abstraction concept. This is currently deployed on Polygon mumbai network and uses Biconomy paymaster. It includes following scripts
- index.ts - Allows user to mint an NFT by using their own ERC20 tokens, here in this example I have used WMATIC for the same.
- mintNFTGasless.ts - Allows use to mint an NFT by making use of paymaster gas
- transfer.ts - A simple transfer script by making use of smart wallet native tokens
Pass the required env variables, You can get the Biconomy paymaster link by signing up on the Dashboard.
Clone this repository and then run
npm i
npm run devAlternatively you can use npm or pnpm if that suits you.