ethers.js

ethers.js is a JavaScript library for developers working with EVM-compatible blockchains, offering an easy way to interact with the StratoVM blockchain.

This library facilitates the interaction with smart contracts deployed on StratoVM.

Installation

npm install --save ethers

Setup

To make ethers.js available in your project, preface your code with the following import statement:

const ethers = require("ethers");

Connecting to StratoVM Sepolia Testnet

For connections to the StartoVM Sepolia network, initialize an ethers.js JsonRpcProvider object with the StratoVM Sepolia RPC URL:

const ethers = require("ethers"); 
const url = "https://rpc.stratovm.io";
const provider = new ethers.providers.JsonRpcProvider(url);

Last updated