Skip to content

Commit 8276c45

Browse files
Update installation.md
1 parent be12d20 commit 8276c45

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,36 @@
1-
# Installation
1+
[Matic.js](https://github.com/maticnetwork/matic.js) a JavaScript library that facilitates interaction with the Polygon network. It provides developers with simplified operations such as depositing, transferring, and withdrawing assets; allowing them to focus on building dApps without the need for in-depth knowledge of blockchain systems.
22

3-
## Matic.JS
3+
Matic.js supports two popular libraries:
44

5-
[Matic.js](https://github.com/maticnetwork/matic.js) a JavaScript library that facilitates interaction with the Polygon network. It provides developers with simplified operations such as depositing, transferring, and withdrawing assets; allowing developers to focus on building (dApps) without the need for in-depth knowledge of blockchain systems.
5+
1. [Web3.js](https://web3js.readthedocs.io/)
6+
2. [Ethers](https://docs.ethers.io/)
7+
8+
## Prerequisites
9+
10+
Ensure that your [Node.js](https://nodejs.org/en/)version is up to date.
611

7-
Matic.js is made up of a main library and an Ethereum library:
12+
We recommend using Node.js version v18.19.1 for optimal compatibility.
813

9-
## Main library
14+
## Matic.js core library
1015

11-
The main library has the core logic and provides different APIs. The user interacts mostly with this library.
16+
The library contains core logic and provides different APIs. The user interacts mostly with this library.
1217

1318
```sh
1419
npm i @maticnetwork/maticjs
1520
```
16-
## Ethereum library
1721

18-
The Ethereum library allows us to use any ether library. It is injected into Matic.js using plugins.
19-
20-
matic.js supports two popular library -
21-
22-
1. [Web3.js](https://web3js.readthedocs.io/)
23-
2. [Ethers](https://docs.ethers.io/)
22+
## Matic.js ethers library
2423

25-
### Web3.js
24+
The ethers library allows us to use any ethers function. It is injected into Matic.js using plugins.
2625

2726
```sh
28-
npm install @maticnetwork/maticjs-web3
27+
npm install @maticnetwork/maticjs-ethers
2928
```
3029

31-
### ethers
30+
### Matic.js web3 library
31+
32+
The web3 library allows us to use any web3 function.
3233

3334
```sh
34-
npm install @maticnetwork/maticjs-ethers
35+
npm install @maticnetwork/maticjs-web3
3536
```
36-
### System requirements
37-
38-
Ensure that your [Node.js](https://nodejs.org/en/)version is up to date. We recommend using Node.js version v18.19.1 for optimal compatibility.

0 commit comments

Comments
 (0)