Matic.js
Javascript developer library to interact with Matic Network
Install / Use
/learn @0xPolygon/Matic.jsREADME
Matic SDK
This repository contains the maticjs client library. maticjs makes it easy for developers, who may not be deeply familiar with smart contract development, to interact with the various components of Matic Network.
This library will help developers to move assets from Ethereum chain to Matic chain, and withdraw from Matic to Ethereum using fraud proofs.
Docs
https://wiki.polygon.technology/docs/tools/matic-js/get-started
Support
Our Discord is the best way to reach us ✨.
Contributors
You are very welcome to contribute, please see contributing guidelines - [Contribute].
Thank you to all the people who already contributed to matic.js!
<a href="https://github.com/maticnetwork/matic.js/graphs/contributors"> <img src="https://contrib.rocks/image?repo=maticnetwork/matic.js" /> </a>Made with contributors-img.
Development
Setup
npm ci
How to debug
Write your code inside file test/debug.js and run below code
npm run debug
Above command will build the source code & install the built version into test folder, which will be used by debug.js.
Lint
# To check lint errors
npm run lint
# To fix most common lint errors
# Note that it might not fix all errors, some need manual intervention
npm run lint:fix
Build code
npm run build
Run test
npm run test
Generate distribution files
npm run deploy
NPM publish
Before running publish script, make sure you have updated version properly.
Note that prepublishOnly script will be automatically called while publishing. It will check lint, clean dist/lib folders and build fresh distribution files before it executes npm publish.
npm publish
License
MIT
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
