{"_id":"@cypher-capital/jup-instruction-parser","name":"@cypher-capital/jup-instruction-parser","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cypher-capital/jup-instruction-parser","version":"1.0.0","description":"Parser to parse instruction on the Jupiter v6 program","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"start":"ts-node src/cli.ts","build":"tsup","test":"ts-node src/tests.ts"},"author":"","license":"ISC","devDependencies":{"ts-node":"^10.9.2","tsup":"^8.3.5","typescript":"^5.3.3"},"dependencies":{"@coral-xyz/anchor":"^0.29.0","@solana/spl-token":"^0.3.9","@solana/spl-token-registry":"^0.2.4574","@solana/web3.js":"^1.90.0","bs58":"^6.0.0","commander":"^11.1.0","decimal.js":"^10.4.3","got":"^11.8.6"},"_id":"@cypher-capital/jup-instruction-parser@1.0.0","gitHead":"abf3f406a87aa16ad120f7fd22e6745d8129c966","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-Cf94/tNdxKxak1v9ddH/PgkeFXqyybAv/ECeRvuL6rdzJZbTIWU7A1TJUVbTSjBzt6oSMVYS43T4KIZ3Uv5mzA==","shasum":"33ef8ab5138e31d222f45d7a7ce28cb40969b425","tarball":"https://registry.npmjs.org/@cypher-capital/jup-instruction-parser/-/jup-instruction-parser-1.0.0.tgz","fileCount":8,"unpackedSize":467007,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG07D56D7xkTkw++XWPKVY1G2joxQiwVJP8QRED+pPydAiEAij6NVov1rX+Ys1GleGfFNS0osyvTMheUrVQAGjJBv5k="}]},"_npmUser":{"name":"cypher-capital","email":"saas@cyphercapital.com"},"directories":{},"maintainers":[{"name":"cypher-capital","email":"saas@cyphercapital.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jup-instruction-parser_1.0.0_1744275909049_0.6134039932142399"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-10T09:05:08.988Z","1.0.0":"2025-04-10T09:05:09.251Z","modified":"2025-04-10T09:05:09.519Z"},"maintainers":[{"name":"cypher-capital","email":"saas@cyphercapital.com"}],"description":"Parser to parse instruction on the Jupiter v6 program","license":"ISC","readme":"# Parser for Jupiter V6 Contract\n\nA library you can use to parse the Jupiter v6 swap instruction. It is also the same library that we use to parse the swap information on the https://station.jup.ag/stats page.\n\nAfter cloning the repo, in the project directory run `yarn install`. Then:\n\n\n```\nyarn start lookup-tx --signature <TRANSACTION_SIGNATURE> --rpc <RPC_URL>\n```\n\nFor an example on how to use the library, you can check out: `src/cli.ts`.\n\n## NPM\n\nIf you are using this via NPM, make sure that you are using the right version for the right contract:\n\n* `JUP4Fb2cqiRUcaTHdrPC8h2gNsA2ETXiPDD33WcGuJB`: `1.0.5`\n* `JUP5pEAZeHdHrLxh5UCwAbpjGwYKKoquCpda2hfP4u8`: `5.0.1`\n* `JUP5cHjnnCx2DppVsufsLrXs8EBZeEZzGtEK9Gdz6ow`: `5.2.0`\n* `JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4`: `6.0.7`\n\nIf you will need all of them in order to parse different contract, you can include them in your `package.json` as this:\n\n```json\n{\n  \"dependencies\": {\n    \"@jup-ag/instruction-parser-v4\": \"npm:@jup-ag/instruction-parser@1.0.5\",\n    \"@jup-ag/instruction-parser-v5\": \"npm:@jup-ag/instruction-parser@5.0.1\",\n    \"@jup-ag/instruction-parser-v5-1\": \"npm:@jup-ag/instruction-parser@5.2.0\",\n    \"@jup-ag/instruction-parser-v6\": \"npm:@jup-ag/instruction-parser@6.0.7\"\n  }\n}\n```\n\n## Note\n\nWe are using Anchor events for extracting swap details. One downside about this approach is that we cannot longer extract swap details if the log is being truncated.\n\n## Jupiter V4 Contract\n\nFor the old V4 contract, check out [v4 tag](https://github.com/jup-ag/instruction-parser/tree/v4).\n\n## Jupiter V3 Contract\n\nFor the old V3 contract, check out [v3 tag](https://github.com/jup-ag/instruction-parser/tree/v3).","readmeFilename":"README.md","_rev":"1-5ee67e830e3804aef783b7958012ffb1"}