> For the complete documentation index, see [llms.txt](https://docs.stratovm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stratovm.io/stratovm-sdk/clients/ethers.js.md).

# ethers.js

[ethers.js](https://docs.ethers.org/v6/) 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

```javascript
npm install --save ethers
```

Setup

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

```javascript
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:

{% code overflow="wrap" %}

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

{% endcode %}

<br>
