You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have no prior experience in dApp development, the following resources will help you get started with some essential tools for building, testing, and deploying applications on Polygon PoS.
Copy file name to clipboardExpand all lines: docs/tools/matic-js/get-started.md
+39-5Lines changed: 39 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,44 @@
2
2
comments: true
3
3
---
4
4
5
-
Matic.js is a javascript library which helps in interacting with the various components of Matic Network.
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 them to focus on building dApps without requiring in-depth knowledge of blockchain systems.
6
6
7
-
In this get started document we will learn about how we can setup and interact with the POS bridge.
7
+
Matic.js supports two popular libraries:
8
8
9
-
In case you face any issues or have any queries, feel free to raise a [ticket](https://support.polygon.technology/support/tickets/new) to our Support Team or reach out to us on [Discord](https://discord.com/invite/0xPolygonCommunity).
9
+
1.[Web3.js](https://web3js.readthedocs.io/)
10
+
2.[Ethers](https://docs.ethers.io/)
10
11
11
-
!!! important
12
-
Make sure you have followed the [installation step](installation.md).
12
+
## Prerequisites
13
+
14
+
Ensure that your [Node.js](https://nodejs.org/en/) version is up to date.
15
+
16
+
We recommend using Node.js version v18.19.1 for optimal compatibility.
17
+
18
+
## Installation
19
+
20
+
### Matic.js core library
21
+
22
+
The library contains core logic and provides different APIs. The user interacts mostly with this library.
23
+
24
+
```sh
25
+
npm i @maticnetwork/maticjs
26
+
```
27
+
28
+
### Matic.js ethers library
29
+
30
+
The ethers library allows us to use any ethers function. It is injected into Matic.js using plugins.
31
+
32
+
```sh
33
+
npm install @maticnetwork/maticjs-ethers
34
+
```
35
+
36
+
### Matic.js web3 library
37
+
38
+
The web3 library allows us to use any web3 function.
39
+
40
+
```sh
41
+
npm install @maticnetwork/maticjs-web3
42
+
```
13
43
14
44
## Initializing
15
45
@@ -25,3 +55,7 @@ use(Web3ClientPlugin)
25
55
26
56
- Click for more details on POS applications that use [`web3js`](setup/web3js.md).
27
57
- Click for more details on POS applications that use [`ethers`](setup/ethers.md).
58
+
59
+
## Support
60
+
61
+
In case you face any issues or have any queries, feel free to raise a [ticket](https://support.polygon.technology/support/tickets/new) to our Support Team or reach out to us on [Discord](https://discord.com/invite/0xPolygonCommunity).
0 commit comments