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

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