{"_id":"@aiquant/lucid-cardano","_rev":"2-b3a1a1cd7f496e7451e5ecdc9039fc48","name":"@aiquant/lucid-cardano","dist-tags":{"latest":"0.10.11"},"versions":{"0.10.10":{"name":"@aiquant/lucid-cardano","version":"0.10.10","author":{"name":"Alessandro Konrad"},"license":"MIT","_id":"@aiquant/lucid-cardano@0.10.10","maintainers":[{"name":"aiquant","email":"rayan.ahmad@aiquantgroup.com"}],"homepage":"https://github.com/spacebudz/lucid#readme","bugs":{"url":"https://github.com/spacebudz/lucid/issues"},"dist":{"shasum":"961ce011e6ff2ea5ebcee36920facedbf227b24b","tarball":"https://registry.npmjs.org/@aiquant/lucid-cardano/-/lucid-cardano-0.10.10.tgz","fileCount":134,"integrity":"sha512-DdnGVg69Nj6S6hASUH4ZfyWBbs7MdJwRoppLjmsm18sHSqtDH5B3Y4ePQCg/tfjkK52xb6doLNxoHoeHrTlm1w==","signatures":[{"sig":"MEUCIQCYTM1M4/JE5Gbw/WBQqxqHh90x29rfTUv8/EY+ltLZcAIgQxP4mScfM7ZkalKvPHnc7TdfilLB5clRgsuizOp/k2M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13419708},"main":"./cjs/mod.js","types":"./esm/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=14"},"exports":{".":{"import":"./esm/mod.js","require":"./cjs/mod.js"}},"_npmUser":{"name":"aiquant","actor":{"name":"aiquant","type":"user","email":"rayan.ahmad@aiquantgroup.com"},"email":"rayan.ahmad@aiquantgroup.com"},"repository":{"url":"git+https://github.com/spacebudz/lucid.git","type":"git"},"_npmVersion":"11.4.2","description":"Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.","directories":{},"_nodeVersion":"20.18.2","dependencies":{"ws":"^8.10.0","node-fetch":"^3.2.3","@peculiar/webcrypto":"^1.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/lucid-cardano_0.10.10_1751286192210_0.4364376530794054","host":"s3://npm-registry-packages-npm-production"}},"0.10.11":{"name":"@aiquant/lucid-cardano","main":"./cjs/mod.js","module":"./esm/mod.js","types":"./esm/mod.d.ts","version":"0.10.11","license":"MIT","author":{"name":"Alessandro Konrad"},"description":"Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.","repository":{"type":"git","url":"git+https://github.com/spacebudz/lucid.git"},"engines":{"node":">=14"},"dependencies":{"node-fetch":"^3.2.3","@peculiar/webcrypto":"^1.4.0","ws":"^8.10.0"},"exports":{".":{"require":"./cjs/mod.js","import":"./esm/mod.js"}},"_id":"@aiquant/lucid-cardano@0.10.11","bugs":{"url":"https://github.com/spacebudz/lucid/issues"},"homepage":"https://github.com/spacebudz/lucid#readme","_nodeVersion":"20.18.2","_npmVersion":"11.4.2","dist":{"integrity":"sha512-ZJxnEUAO/yhBIklW3KHWffWlgOCW7Lr/in/Ktd6dzpu4mqagnLUM4bV4VZeaZimknPZ3nA+750dz3mD+wUFPEA==","shasum":"4d8ef92e6a1f77c2a1fe25b4235db97f80de0f71","tarball":"https://registry.npmjs.org/@aiquant/lucid-cardano/-/lucid-cardano-0.10.11.tgz","fileCount":134,"unpackedSize":13419730,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDlmnHDjN72VEQLNI0bCMTXa4O3w9tE8UZ9WSYFfGuDSQIhAK1PhSg0hFHoYQetxqTR19CTcpst5o4fQ7sZd1gccRlN"}]},"_npmUser":{"name":"aiquant","email":"rayan.ahmad@aiquantgroup.com","actor":{"name":"aiquant","email":"rayan.ahmad@aiquantgroup.com","type":"user"}},"directories":{},"maintainers":[{"name":"aiquant","email":"rayan.ahmad@aiquantgroup.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lucid-cardano_0.10.11_1751362871775_0.8132605152436998"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-30T12:23:12.152Z","modified":"2025-07-01T09:41:12.231Z","0.10.10":"2025-06-30T12:23:12.497Z","0.10.11":"2025-07-01T09:41:12.054Z"},"bugs":{"url":"https://github.com/spacebudz/lucid/issues"},"author":{"name":"Alessandro Konrad"},"license":"MIT","homepage":"https://github.com/spacebudz/lucid#readme","repository":{"type":"git","url":"git+https://github.com/spacebudz/lucid.git"},"description":"Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.","maintainers":[{"name":"aiquant","email":"rayan.ahmad@aiquantgroup.com"}],"readme":"<p align=\"center\">\n  <img width=\"100px\" src=\"./logo/lucid.svg\" align=\"center\"/>\n  <h1 align=\"center\">Lucid</h1>\n  <p align=\"center\">Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.</p>\n\n<p align=\"center\">\n    <img src=\"https://img.shields.io/github/commit-activity/m/berry-pool/lucid?style=for-the-badge\" />\n    <a href=\"https://www.npmjs.com/package/lucid-cardano\">\n      <img src=\"https://img.shields.io/npm/v/lucid-cardano?style=for-the-badge\" />\n    </a>\n     <a href=\"https://doc.deno.land/https://deno.land/x/lucid/mod.ts\">\n      <img src=\"https://img.shields.io/readthedocs/cardano-lucid?style=for-the-badge\" />\n    </a>\n    <a href=\"https://www.npmjs.com/package/lucid-cardano\">\n      <img src=\"https://img.shields.io/npm/dw/lucid-cardano?style=for-the-badge\" />\n    </a>\n    <img src=\"https://img.shields.io/npm/l/lucid-cardano?style=for-the-badge\" />\n    <a href=\"https://twitter.com/spacebudzNFT\">\n      <img src=\"https://img.shields.io/twitter/follow/spacebudzNFT?style=for-the-badge&logo=twitter\" />\n    </a>\n  </p>\n\n</p>\n\n### Get started\n\n#### NPM\n\n```\nnpm install lucid-cardano\n```\n\n#### Deno 🦕\n\nFor JavaScript and TypeScript\n\n```js\nimport { Lucid } from \"https://deno.land/x/lucid@0.10.10/mod.ts\";\n```\n\n#### Web\n\n```html\n<script type=\"module\">\nimport { Lucid } from \"https://unpkg.com/lucid-cardano@0.10.10/web/mod.js\"\n// ...\n</script>\n```\n\n### \n\n### Build from source\n\nBuild NPM and Web target\n\n```\ndeno task build\n```\n\nOutputs a `dist` folder\n\n### Examples\n\n- [Basic examples](./src/examples/)\n- [Next.js Blockfrost Proxy API Example](https://github.com/GGAlanSmithee/cardano-lucid-blockfrost-proxy-example)\n\n### Basic usage\n\n```js\n// import { Blockfrost, Lucid } from \"https://deno.land/x/lucid@0.10.10/mod.ts\"; Deno\nimport { Blockfrost, Lucid } from \"lucid-cardano\"; // NPM\n\nconst lucid = await Lucid.new(\n  new Blockfrost(\"https://cardano-preview.blockfrost.io/api/v0\", \"<projectId>\"),\n  \"Preview\",\n);\n\n// Assumes you are in a browser environment\nconst api = await window.cardano.nami.enable();\nlucid.selectWallet(api);\n\nconst tx = await lucid.newTx()\n  .payToAddress(\"addr...\", { lovelace: 5000000n })\n  .complete();\n\nconst signedTx = await tx.sign().complete();\n\nconst txHash = await signedTx.submit();\n\nconsole.log(txHash);\n```\n\n### Test\n\n```\ndeno task test\n```\n\n### Build Core\n\nThis library is built on top of a customized version of the serialization-lib\n(cardano-multiplatform-lib) and on top of the message-signing library, which are\nwritten in Rust.\n\n```\ndeno task build:core\n```\n\n### Test Core\n\n```\ndeno task test:core\n```\n\n### Docs\n\n[View docs](https://doc.deno.land/https://deno.land/x/lucid/mod.ts) 📖\n\nYou can generate documentation with:\n\n```\ndeno doc\n```\n\n### Compatibility\n\nLucid is an ES Module, so to run it in the browser any bundler which allows for\ntop level await and WebAssembly is recommended. If you use Webpack 5 enable in\nthe `webpack.config.js`:\n\n```\nexperiments: {\n    asyncWebAssembly: true,\n    topLevelAwait: true,\n    layers: true // optional, with some bundlers/frameworks it doesn't work without\n  }\n```\n\nTo run the library in Node.js you need to set `{\"type\" : \"module\"}` in your\nproject's `package.json`. Otherwise you will get import issues.\n\n### Contributing\n\nContributions and PRs are welcome!\\\nThe [contribution instructions](./CONTRIBUTING.md).\n\nJoin us on [Discord](https://discord.gg/82MWs63Tdm)!\n\n### Use Lucid with React\n\n[use-cardano](https://use-cardano.alangaming.com/) a React context, hook and set\nof components built on top of Lucid.\n\n### Use Lucid with Next.js\n\n[Cardano Starter Kit](https://cardano-starter-kit.alangaming.com/) a Next.js\nstarter kit for building Cardano dApps.\n","readmeFilename":"README.md"}