Installation
maticjs has two parts -
- Main library
- Ethereum library
Main library
The Main library has the core logic and provides different APIs. The user interacts mostly with this library.
npm i @maticnetwork/maticjs
Ethereum library
Ethereum library allows us to use any favourite ether library. It is injected into maticjs using plugins.
matic.js supports two popular library -
Web3.js
npm install @maticnetwork/maticjs-web3
ethers
npm install @maticnetwork/maticjs-ethers