Usage
Git repo and contact details
- For details about the technical architecture and if you want to contribute, head over to the repo https://github.com/0xPolygon/chain-indexer-framework
- For any questions, reach out to us on the Polygon R&D Discord.
Installation¶
You can install the package using:
Using npm¶
npm install @maticnetwork/chain-indexer-framework
Using Yarn¶
yarn add @maticnetwork/chain-indexer-framework
Usage¶
// Import the chain-indexer-framework module
const chain-indexer-framework = require('@maticnetwork/chain-indexer-framework');
Examples¶
To gain a clearer understanding of the entire process, check out our prebuilt examples.
- The first example involves indexing MATIC transfer events from the Ethereum blockchain.
- The second example involves indexing NFT transfers and maintaining NFT balances.
Both these examples encompass all the layers involved, starting from producers, moving through transformers, and concluding with consumers.