# @maticnetwork/maticjs

> Javascript developer library for interacting with Matic Network

Latest version **3.9.13** (published 2026-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maticnetwork/maticjs
pnpm add @maticnetwork/maticjs
yarn add @maticnetwork/maticjs
bun add @maticnetwork/maticjs
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.9.13 |
| Published | 2026-06-26 |
| First published | 2019-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 12 |
| Unpacked size | 4.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 564 |
| Author | Jaynti Kanani |
| Maintainers | devops-polygon.technology, jminfantepolygon, maximushaximus, mtwardzicki, agupta1411, py-zoid |
| Keywords | ethereum, web3, ethers, matic |

## Links

- npm: https://www.npmjs.com/package/@maticnetwork/maticjs
- Repository: https://github.com/0xPolygon/matic.js
- Homepage: https://github.com/0xPolygon/matic.js#readme
- Issues: https://github.com/0xPolygon/matic.js/issues
- npm.io page: https://npm.io/package/@maticnetwork/maticjs

## Dependencies (12)

- [rlp](https://npm.io/package/rlp.md) ^3.0.0
- [bn.js](https://npm.io/package/bn.js.md) ^5.2.1
- [assert](https://npm.io/package/assert.md) ^2.1.0
- [buffer](https://npm.io/package/buffer.md) ^6.0.3
- [stream](https://npm.io/package/stream.md) ^0.0.3
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.2.1
- [@ethereumjs/trie](https://npm.io/package/@ethereumjs/trie.md) ^6.2.0
- [@ethereumjs/util](https://npm.io/package/@ethereumjs/util.md) ^9.0.3
- [@ethereumjs/block](https://npm.io/package/@ethereumjs/block.md) ^5.2.0
- [@ethereumjs/common](https://npm.io/package/@ethereumjs/common.md) ^4.4.0
- [ethereum-cryptography](https://npm.io/package/ethereum-cryptography.md) ^2.2.1

## Recent versions

- 3.9.13 (latest) — 2026-06-26
- 3.6.0-beta.1 (beta) — 2022-12-27
- 3.9.12 — 2026-06-26
- 3.9.11 — 2026-04-27
- 3.9.10 — 2026-04-27
- 3.9.9 — 2026-04-27
- 0.0.0-pre-3.9.8-20260427162742 — 2026-04-27
- 0.0.0-pr-465-20260427161229 — 2026-04-27
- 3.9.8-beta.1 — 2026-03-29
- 3.9.8 — 2026-03-29
- 3.9.7 — 2026-03-20
- 3.9.6 — 2025-08-14
- 3.9.5 — 2025-08-12
- 3.9.4 — 2025-08-12
- 3.9.3 — 2025-08-12
- … 123 more at https://npm.io/package/@maticnetwork/maticjs/versions

## README

# @maticnetwork/maticjs

[![npm version](https://img.shields.io/npm/v/@maticnetwork/maticjs.svg)](https://www.npmjs.com/package/@maticnetwork/maticjs)
[![CI](https://github.com/0xPolygon/matic.js/actions/workflows/ci-trigger.yml/badge.svg?branch=master)](https://github.com/0xPolygon/matic.js/actions/workflows/ci-trigger.yml)
[![Release](https://github.com/0xPolygon/matic.js/actions/workflows/npm-release-trigger.yml/badge.svg?branch=master)](https://github.com/0xPolygon/matic.js/actions/workflows/npm-release-trigger.yml)
[![License: MIT](https://img.shields.io/npm/l/@maticnetwork/maticjs.svg)](LICENSE)

JavaScript SDK for the Polygon (Matic) Network. Move assets between
Ethereum and Polygon and withdraw using fraud proofs, without needing
deep familiarity with the underlying smart contracts.

## Install

```bash
npm install @maticnetwork/maticjs
# or
pnpm add @maticnetwork/maticjs
```

A plugin is required for the EVM library you use:

- [`@maticnetwork/maticjs-ethers`](https://www.npmjs.com/package/@maticnetwork/maticjs-ethers) — ethers v5
- [`@maticnetwork/maticjs-web3`](https://www.npmjs.com/package/@maticnetwork/maticjs-web3) — web3.js

## Documentation

<https://docs.polygon.technology/tools/matic-js/get-started>

## Source

<https://github.com/0xPolygon/matic.js> — issues, contributions, and the
broader monorepo. The published package directory is
[`packages/maticjs/`](https://github.com/0xPolygon/matic.js/tree/master/packages/maticjs).

## Support

Reach the team on [Discord](https://discord.com/invite/0xpolygonrnd).

## License

MIT — see [LICENSE](LICENSE).

---
_Source: https://npm.io/package/@maticnetwork/maticjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
