Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/src/types/mod.ts

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.
Go to Latest
import * as lucid from "https://deno.land/x/lucid@0.5.2/src/types/mod.ts";

Interfaces

A wallet that can be constructed from external data e.g UTxOs, collateral, and address

Type Aliases

Bech32

Note: Plutus scripts need to be cbor encoded. Raw compiled script without the CBOR encoding do not work.

Hex

Hex

JSON object

Hex

Note: Plutus scripts need to be CBOR encoded. Raw compiled script without the CBOR encoding do not work.

asHash will add the datum hash to the output and the datum to the witness set

Hex

These are the arguments that conform a BuiltinData in Plutus:

Hex

Bech32

Bech32

Hex (Redeemer is only PlutusData, same as Datum)

Bech32

Note: Plutus scripts need to be CBOR encoded. Raw compiled script without the CBOR encoding do not work.

Hex

Hex

Note: Plutus scripts need to be CBOR encoded. Raw compiled script without the CBOR encoding do not work.

Hex

Hex

Hex

Hex

Concatenation of Policy Id and asset name in Hex

Time in milliseconds

Note: Plutus scripts need to be cbor encoded. Raw compiled script without the CBOR encoding do not work.