Skip to main content


maticjs has two parts -

  1. Main library
  2. 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 -

  1. Web3.js
  2. Ethers


npm install @maticnetwork/maticjs-web3


npm install @maticnetwork/maticjs-ethers