0.10.7 • Published 2 years ago
@vespr-wallet/lucid-cardano v0.10.7
Disclaimer
This package may not work on Deno or Browser in contrast with the original repo. This fork arises from the need of having a CJS build of lucid.
Get started
NPM
npm install @vespr-wallet/lucid-cardanoDeno 🦕
For JavaScript and TypeScript
import { Lucid } from "https://deno.land/x/lucid@0.10.7/mod.ts";Web
<script type="module">
import { Lucid } from "https://unpkg.com/lucid-cardano@0.10.7/web/mod.js"
// ...
</script>Build from source
Build NPM and Web target
deno task buildOutputs a dist folder
Examples
Basic usage
// import { Blockfrost, Lucid } from "https://deno.land/x/lucid@0.10.7/mod.ts"; Deno
import { Blockfrost, Lucid } from "lucid-cardano"; // NPM
const lucid = await Lucid.new(
  new Blockfrost("https://cardano-preview.blockfrost.io/api/v0", "<projectId>"),
  "Preview",
);
// Assumes you are in a browser environment
const api = await window.cardano.nami.enable();
lucid.selectWallet(api);
const tx = await lucid.newTx()
  .payToAddress("addr...", { lovelace: 5000000n })
  .complete();
 Contributions are welcomed
### Get started
#### NPMnpm install @vespr-wallet/lucid-cardano
0.10.7-rc.1
2 years ago
0.10.7-rc.3
2 years ago
0.10.7-rc.2
2 years ago
0.10.7
2 years ago
0.10.7-rc.4
2 years ago
0.10.5
2 years ago
0.10.6
2 years ago
0.10.3
3 years ago
0.10.2
3 years ago
0.10.1
3 years ago