> 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/web3.js.md).

# Web3.js

## web3.js

The [web3.js](https://web3js.org/) library is a JavaScript library designed to facilitate the interaction with nodes on EVM-compatible blockchains such as StratoVM.

Use web3.js for efficient communication with smart contracts on the StratoVM Network.

### Installation <a href="#installation" id="installation"></a>

To add web3.js to your development environment, install it with the following command:

```javascript
npm install web3
```

### Configuration <a href="#configuration" id="configuration"></a>

Begin by importing web3.js at the top of your JavaScript file to get started:

```javascript
const Web3 = require("web3");
```

### Connecting to StratoVM Sepolia Testnet <a href="#connecting-to-superseed-sepolia-testnet" id="connecting-to-superseed-sepolia-testnet"></a>

Create a link to the StratoVM Sepolia network by instantiating a web3.js object, targeting the RPC endpoint of an StratoVM node:

{% code overflow="wrap" %}

```javascript
const Web3 = require("web3"); 
// For StratoVM Sepolia Testnet
//const web3 = new Web3("https://rpc.stratovm.io"); 
```

{% endcode %}

<br>
