Skip to content

Installation

Matic.js is made up of a main library and an 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

The Ethereum library allows us to use any favorite ether library. It is injected into maticjs using plugins.

matic.js supports two popular library -

  1. Web3.js
  2. Ethers

Web3.js

npm install @maticnetwork/maticjs-web3

ethers

npm install @maticnetwork/maticjs-ethers

Last update: December 19, 2023
Authors: kmurphypolygon