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

x/lucid/src/mod.ts>Data

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
namespace Data
Re-export
import { Data } from "https://deno.land/x/lucid@0.8.6/src/mod.ts";
type alias Data
Re-export
import { type Data } from "https://deno.land/x/lucid@0.8.6/src/mod.ts";
definition:
| bigint
| string
| Array<Data>
| Map<Data, Data>
variable Data
Re-export
import { Data } from "https://deno.land/x/lucid@0.8.6/src/mod.ts";

type

{ BigInt; String; Boolean; Any; Array: <T extends TSchema>(schema: T) => unknown; Map: <T extends TSchema, U extends TSchema>(keySchema: T, valueSchema: U) => unknown; Object: <T extends TProperties>(properties: T) => unknown; Enum: <T extends TSchema>(items: T[]) => unknown; Tuple: <T extends TSchema[]>(items: [...T]) => unknown; Literal: <T extends TLiteralValue>(literal: T) => TLiteral<T>; Nullable: <T extends TSchema>(schema: T) => unknown; to; from; fromJson; toJson; void: () => Datum | Redeemer; castFrom; castTo; }