This is a ZKsync + Web3.js v4 +
Node.js project in TypeScript bootstrapped with
zksync-cli
. It uses the
ZKsync plugin for Web3.js.
- Node.js v18.x or higher
- Make sure to install the dependencies with
npm install
- Write your code in
src/main.ts
- Run
npm run start
in your terminal to run your code
The provided examples run against the ZKsync Sepolia Testnet. You can manually update the RPC URL
used to create new instances of the Web3
and ZKsyncPlugin
classes.
To learn more about the ZKsync plugin for Web3.js, ZKsync, or Web3.js v4, check out the following resources: