import { Provider, Wallet } from "zksync-ethers";import { ethers } from "ethers";// Read data from a providerconst provider = new Provider("https://api.testnet.abs.xyz");const blockNumber = await provider.getBlockNumber();// Submit transactions from a walletconst wallet = new Wallet(ethers.Wallet.createRandom().privateKey, provider);const tx = await wallet.sendTransaction({ to: wallet.getAddress(),});
Learn more about the features of zksync-ethers in the official documentation: