Skip to content

Commit 40bb252

Browse files
Merge pull request 0xPolygon#445 from amiabix/test
Updates Dev tools pages updates
2 parents c2c66ad + 8276c45 commit 40bb252

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

docs/tools/chain-indexer-framework/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Before we get into the details, let us understand why we need it and the problem
1212

1313
### 1. What is an EVM blockchain data indexer?
1414

15-
An EVM (Ethereum Virtual Machine) blockchain data indexer is a specialised search engine for EVM-based blockchains like Ethereum and Polygon protocols. It sorts and organises blockchain data, making it faster and easier for developers to query and retrieve specific information for their decentralised applications (dApps).
15+
An EVM [Ethereum Virtual Machine](https://ethereum.org/en/developers/docs/evm/) blockchain data indexer is a specialised search engine for EVM-based blockchains like Ethereum and Polygon protocols. It sorts and organises blockchain data, making it faster and easier for developers to query and retrieve specific information for their decentralised applications (dApps).
1616

1717
### 2. Why do dApps need a blockchain data indexer?
1818

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
1-
Matic.js is made up of a main library and an Ethereum library:
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-
## Main library
3+
Matic.js supports two popular libraries:
44

5-
The main library has the core logic and provides different APIs. The user interacts mostly with this library.
6-
7-
```sh
8-
npm i @maticnetwork/maticjs
9-
```
5+
1. [Web3.js](https://web3js.readthedocs.io/)
6+
2. [Ethers](https://docs.ethers.io/)
107

11-
## Ethereum library
8+
## Prerequisites
129

13-
The Ethereum library allows us to use any favorite ether library. It is injected into maticjs using plugins.
10+
Ensure that your [Node.js](https://nodejs.org/en/)version is up to date.
1411

15-
matic.js supports two popular library -
12+
We recommend using Node.js version v18.19.1 for optimal compatibility.
1613

17-
1. [Web3.js](https://web3js.readthedocs.io/)
18-
2. [Ethers](https://docs.ethers.io/)
14+
## Matic.js core library
1915

20-
### Web3.js
16+
The library contains core logic and provides different APIs. The user interacts mostly with this library.
2117

2218
```sh
23-
npm install @maticnetwork/maticjs-web3
19+
npm i @maticnetwork/maticjs
2420
```
2521

26-
### ethers
22+
## Matic.js ethers library
23+
24+
The ethers library allows us to use any ethers function. It is injected into Matic.js using plugins.
2725

2826
```sh
2927
npm install @maticnetwork/maticjs-ethers
3028
```
29+
30+
### Matic.js web3 library
31+
32+
The web3 library allows us to use any web3 function.
33+
34+
```sh
35+
npm install @maticnetwork/maticjs-web3
36+
```

0 commit comments

Comments
 (0)