zksync-paymaster is a repository containing scripts and configurations for deploying and utilizing a paymaster smart contract on the zkSync network. This repository provides a streamlined way to interact with ERC20 tokens and a paymaster contract, specifically designed to work with Hardhat and zkSync's Ethereum Layer 2 scaling solution.
Before you start, ensure you have the following installed:
- Clone the Repository:
git clone https://github.com/codeesura/zksync-paymaster.git cd zksync-paymaster cp .env.example .env- Install Dependencies:
yarn install # or npm install- Environment Setup: Create a
.envfile in the root directory and set the following environment variables:
DEPLOYER_WALLET_PRIVATE_KEY=your_wallet_private_key_here- Clone the Repository:
git clone https://github.com/codeesura/zksync-paymaster.git cd zksync-paymaster cp .env.example .env- Set Up .env File
Ensure your .env file contains the necessary private key:
DEPLOYER_WALLET_PRIVATE_KEY=your_wallet_private_key_here- Build and Run with Docker:
docker build -t zksync-paymaster . docker run -p 3000:3000 zksync-paymaster