{"_id":"@acurast/indexer","_rev":"2-54f9cc34cd6c525f1c7b94e6afa4db59","name":"@acurast/indexer","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@acurast/indexer","version":"0.0.1","_id":"@acurast/indexer@0.0.1","maintainers":[{"name":"papers_ch","email":"contact@papers.ch"}],"dist":{"shasum":"22955b2ed2c4aa3ba54e63f3c96fb9ba01627362","tarball":"https://registry.npmjs.org/@acurast/indexer/-/indexer-0.0.1.tgz","fileCount":11,"integrity":"sha512-ns9IkaBWlErqCnsRtbmU0EOAZ0QVDiGEuCGg3+dxkxoJcO4RPG5Qp8QRXdPXjDdEEIu9n2ZqcerneiV7QmbPMQ==","signatures":[{"sig":"MEQCIBG3E39QuKsUqL3vsn7geAPzoCjo8bxSrffQ5AIwBFs9AiBzRwL93PSYTBkktab/oHua9ZO72tl54GeiL3xkx3smSg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3373},"main":"./src/index.js","type":"commonjs","types":"./src/index.d.ts","gitHead":"16e43dccf5e08e366e585efad88f787b7caf2b4c","_npmUser":{"name":"papers_ch","email":"contact@papers.ch"},"_npmVersion":"10.9.2","description":"This library was generated with [Nx](https://nx.dev).","directories":{},"_nodeVersion":"22.15.0","dependencies":{"tslib":"^2.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/indexer_0.0.1_1748864137410_0.24859115700927936","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@acurast/indexer","version":"0.0.2","license":"MIT","type":"commonjs","main":"./src/index.js","types":"./src/index.d.ts","dependencies":{"tslib":"^2.3.0"},"_id":"@acurast/indexer@0.0.2","gitHead":"63b5e7ef8391316451fc8dfad5268856f3f9c946","description":"JSON-RPC client for the [Acurast Indexer](https://indexer.acurast.com).","_nodeVersion":"24.7.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-Cl8f821gdpDoW4ABC/E6ec4gRh8++qK1N5EFx3Con4OLg8FJiNw0SpffYPb8w3Vt63eCGnzokAQ6OSTBHxHDxw==","shasum":"6abdf1d736dbd9a2084b83642cb84a6633d7ec0c","tarball":"https://registry.npmjs.org/@acurast/indexer/-/indexer-0.0.2.tgz","fileCount":23,"unpackedSize":69572,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDRshHYt+5olt2DYu9CyG3ih0vAoIEVw8c8Lp1/2k33YQIhAMB2ESi6hVkOeX2NXqTfFdfdR5UgwZC6q4QMKeuBNSQI"}]},"_npmUser":{"name":"papers_ch","email":"contact@papers.ch"},"directories":{},"maintainers":[{"name":"papers_ch","email":"contact@papers.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/indexer_0.0.2_1777377127031_0.6916306372848571"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-02T11:35:37.346Z","modified":"2026-04-28T11:52:07.307Z","0.0.1":"2025-06-02T11:35:37.584Z","0.0.2":"2026-04-28T11:52:07.187Z"},"description":"JSON-RPC client for the [Acurast Indexer](https://indexer.acurast.com).","maintainers":[{"name":"papers_ch","email":"contact@papers.ch"}],"readme":"# @acurast/indexer\n\nJSON-RPC client for the [Acurast Indexer](https://indexer.acurast.com).\n\nQuery blocks, extrinsics, events, jobs, epochs, storage snapshots, metrics, and commitments.\n\n## Installation\n\n```bash\nnpm install @acurast/indexer\n```\n\n## Usage\n\n### v2 RPC client (recommended)\n\n```typescript\nimport { AcurastRpcIndexer } from '@acurast/indexer'\n\nconst indexer = new AcurastRpcIndexer({\n  apiKey: 'YOUR_API_KEY',\n  // baseUrl: 'https://indexer.acurast.com', // optional\n})\n\nconst blocks = await indexer.getBlocks({ limit: 10 })\nconst commitments = await indexer.getCommitments({ limit: 50 })\n```\n\n### Raw v1 client\n\n```typescript\nimport { createRawIndexer } from '@acurast/indexer'\n\nconst raw = createRawIndexer({ baseUrl: 'https://indexer.acurast.com', apiKey: 'YOUR_API_KEY' })\n```\n\n### Helpers\n\n`computeJobDetailsFromExtrinsics(extrinsics)` derives a job's status, schedule, replicas, and report stats from a list of extrinsics.\n\n## License\n\nISC — Papers AG\n","readmeFilename":"README.md","license":"MIT"}