{"_id":"@cuonglv0297/lucid-cardano","_rev":"3-a1929dfa5fc71129bd54e233c983a761","name":"@cuonglv0297/lucid-cardano","dist-tags":{"latest":"0.10.10"},"versions":{"0.10.7":{"name":"@cuonglv0297/lucid-cardano","version":"0.10.7","author":{"name":"Alessandro Konrad"},"license":"MIT","_id":"@cuonglv0297/lucid-cardano@0.10.7","maintainers":[{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"}],"homepage":"https://github.com/spacebudz/lucid#readme","bugs":{"url":"https://github.com/spacebudz/lucid/issues"},"dist":{"shasum":"8fb244755558deaab9a73a910523a86c0b551503","tarball":"https://registry.npmjs.org/@cuonglv0297/lucid-cardano/-/lucid-cardano-0.10.7.tgz","fileCount":206,"integrity":"sha512-i7Qf5iweR2qu3E70yWO10g9YpKafN/oWOo7JbN9zGsxycSLupVeLWisXtuxNs0yhP2BPzYQMXob1Yf/zDqW4TA==","signatures":[{"sig":"MEQCIEGAFrD+AoXgR8X3ywYIi4Ad5VB393OdC+q2Naf79YB6AiBzAyR+IM1NG72iarlrrNCuUDKqB5UO/9kVIKNzWLLT6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6513885},"gitHead":"a0e182fe77d553f6480d2b3ff5d1f38eee22e4e9","_npmUser":{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"},"repository":{"url":"git+https://github.com/spacebudz/lucid.git","type":"git"},"_npmVersion":"10.7.0","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":"18.20.4","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/lucid-cardano_0.10.7_1723609432408_0.015127799354400562","host":"s3://npm-registry-packages"}},"0.10.8":{"name":"@cuonglv0297/lucid-cardano","version":"0.10.8","author":{"name":"Alessandro Konrad"},"license":"MIT","_id":"@cuonglv0297/lucid-cardano@0.10.8","maintainers":[{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"}],"homepage":"https://github.com/spacebudz/lucid#readme","bugs":{"url":"https://github.com/spacebudz/lucid/issues"},"dist":{"shasum":"ba71495b01cd43bb90fcdb88911d701731cae7cc","tarball":"https://registry.npmjs.org/@cuonglv0297/lucid-cardano/-/lucid-cardano-0.10.8.tgz","fileCount":19,"integrity":"sha512-daAeV7uAnSK8Pq8EdW/oXsfDhyp1wQYstoTapuvYyoWmuGG2uB8usp34Q2XBM7OQV7Y1YXNhO7B2I8Aa2gQkHQ==","signatures":[{"sig":"MEUCIA8VF5Bs+ksMDGb/QVS+ubtGN/oJabJ6MiIHAe9Pp/KlAiEAi6x9N1ZPDcTBfBT3+g7tonZ6NT6BJXi/FVDcOh7t2tA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":183101},"main":"./esm/mod.js","type":"module","types":"./esm/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=14"},"exports":{".":{"import":"./esm/mod.js"}},"gitHead":"a0e182fe77d553f6480d2b3ff5d1f38eee22e4e9","_npmUser":{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"},"repository":{"url":"git+https://github.com/spacebudz/lucid.git","type":"git"},"_npmVersion":"10.7.0","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":"18.20.4","dependencies":{"ws":"^8.10.0","node-fetch":"^3.2.3","@peculiar/webcrypto":"^1.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/lucid-cardano_0.10.8_1723618146504_0.19464935900566638","host":"s3://npm-registry-packages"}},"0.10.9":{"name":"@cuonglv0297/lucid-cardano","version":"0.10.9","author":{"name":"Alessandro Konrad"},"license":"MIT","_id":"@cuonglv0297/lucid-cardano@0.10.9","maintainers":[{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"}],"homepage":"https://github.com/spacebudz/lucid#readme","bugs":{"url":"https://github.com/spacebudz/lucid/issues"},"dist":{"shasum":"761161eac45a96a5ea9b4162d202cb09f182505a","tarball":"https://registry.npmjs.org/@cuonglv0297/lucid-cardano/-/lucid-cardano-0.10.9.tgz","fileCount":19,"integrity":"sha512-U2beV9DoB6W6liLm/GmX28KAStSd6OF5F4brG2LmSyvQyxn7RYfDIWA6cfl0O3JvyttKok0blq1LavUOHLF1YA==","signatures":[{"sig":"MEUCIQDgB+5zJwa0cw9sAX0TDFWyw/Aml3fe2aVxJ2wKrmK1vAIgZYpKQJmWiH+Gl6NqRmVH+AEx+OgYzqkgPmRO6dDweSM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":183100},"main":"./esm/mod.js","type":"module","types":"./esm/mod.d.ts","module":"./esm/mod.js","engines":{"node":">=14"},"exports":{".":{"import":"./esm/mod.js"}},"gitHead":"a0e182fe77d553f6480d2b3ff5d1f38eee22e4e9","_npmUser":{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"},"repository":{"url":"git+https://github.com/spacebudz/lucid.git","type":"git"},"_npmVersion":"10.7.0","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":"18.20.4","dependencies":{"ws":"^8.10.0","node-fetch":"^3.2.3","@peculiar/webcrypto":"^1.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/lucid-cardano_0.10.9_1723618998931_0.646972923640907","host":"s3://npm-registry-packages"}},"0.10.10":{"name":"@cuonglv0297/lucid-cardano","version":"0.10.10","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.","author":{"name":"Alessandro Konrad"},"repository":{"type":"git","url":"git+https://github.com/spacebudz/lucid.git"},"license":"MIT","main":"./esm/mod.js","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js"}},"engines":{"node":">=14"},"type":"module","dependencies":{"node-fetch":"^3.2.3","@peculiar/webcrypto":"^1.4.0","ws":"^8.10.0"},"_id":"@cuonglv0297/lucid-cardano@0.10.10","gitHead":"a0e182fe77d553f6480d2b3ff5d1f38eee22e4e9","types":"./esm/mod.d.ts","bugs":{"url":"https://github.com/spacebudz/lucid/issues"},"homepage":"https://github.com/spacebudz/lucid#readme","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-DeVBDjBp3+7PTgKIAPqJozgTnaC8G9SFCRF4w5oHV2Sfgsl3rJxkhV77h1uceKMMJxvcQZC3kumTgnVW3KGqCw==","shasum":"b63162a3ce89dfc3ac40ab9626dfb279d30ed6a6","tarball":"https://registry.npmjs.org/@cuonglv0297/lucid-cardano/-/lucid-cardano-0.10.10.tgz","fileCount":125,"unpackedSize":6583651,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGUTY9HGSS5svW3gzuXICh5Q/2EuKZ58aH2hWSI9TCZOAiEAs9ae65g3IdgNm3x2PEtUrOeYnq3MMKkX+Xlidn+Lxao="}]},"_npmUser":{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"},"directories":{},"maintainers":[{"name":"cuonglv0297","email":"levietcuong0297@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lucid-cardano_0.10.10_1723619164405_0.44748337855688436"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-14T04:23:52.294Z","modified":"2024-08-14T07:06:04.846Z","0.10.7":"2024-08-14T04:23:52.601Z","0.10.8":"2024-08-14T06:49:06.657Z","0.10.9":"2024-08-14T07:03:19.160Z","0.10.10":"2024-08-14T07:06:04.708Z"},"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":"cuonglv0297","email":"levietcuong0297@gmail.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.7/mod.ts\";\n```\n\n#### Web\n\n```html\n<script type=\"module\">\nimport { Lucid } from \"https://unpkg.com/lucid-cardano@0.10.7/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.7/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"}