Skip to main content

npm npm:

npm i @lavanet/lava-ethers-v6

import { LavaEthersProvider } from "@lavanet/lava-ethers-v6";

//ethersProvider is initialized upon calling create()
const ethersProvider = await LavaEthersProvider.create({
badge: {
badgeServerAddress: "https://badges.lavanet.xyz",
projectId: "//" //login to gateway.lavanet.xyz to get a projectId!
},
chainIds: "ETH1",
geolocation: "1" //optional
});


const blockNumber = await ethersProvider.getBlockNumber();

❓ Looking for more examples? Check out the examples folder on our repository.