Skip to main content
Module

x/lucid/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.
Very Popular
Go to Latest
namespace Data
Re-export
import { Data } from "https://deno.land/x/lucid@0.9.2/mod.ts";
type alias Data
Re-export
import { type Data } from "https://deno.land/x/lucid@0.9.2/mod.ts";
definition:
| bigint
| string
| Array<Data>
| Map<Data, Data>
variable Data
Re-export
import { Data } from "https://deno.land/x/lucid@0.9.2/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, hasConstr?) => unknown; Enum: <T extends TSchema>(items: T[]) => unknown; Tuple: <T extends TSchema[]>(items: [...T], hasConstr?) => 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; }