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

x/lucid/src/types/types.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.7.6/src/types/types.ts";

Interfaces

A wallet that can be constructed from external data e.g utxos and an address. It doesn't allow you to sign transactions/messages. This needs to be handled separately.

Type Aliases

Bech32

Plutus scripts need to be double Cbor encoded. Raw compiled scripts without any Cbor encoding do not work.

Hex

Hex

JSON object

Hex

Plutus scripts need to be double Cbor encoded. Raw compiled scripts without any Cbor encoding do not work.

asHash will add the datum hash to the output and the datum to the witness set. inline will add the datum to the output. scriptRef will add any script to the output. You can only specify asHash or inline, not both at the same time.

Hex

Hex

These are the arguments that conform a BuiltinData in Plutus: data Data = Constr Integer [Data] | Map [(Data, Data)] | List [Data] | I Integer | B BS.ByteString deriving stock (Show, Eq, Ord, Generic) deriving anyclass (NFData)

Hex

Bech32

Bech32

Bech32

Hex (Redeemer is only PlutusData, same as Datum)

Bech32

Plutus scripts need to be double Cbor encoded. Raw compiled scripts without any Cbor encoding do not work.

Hex

Hex

Plutus scripts need to be double Cbor encoded. Raw compiled scripts without any Cbor encoding do not work.

Hex

Hex

Hex

Hex

Concatenation of policy id and asset name in Hex

Time in milliseconds

Plutus scripts need to be double Cbor encoded. Raw compiled scripts without any Cbor encoding do not work.

Hex

Plutus scripts need to be double Cbor encoded. Raw compiled scripts without any Cbor encoding do not work.