import { Data } from "https://deno.land/x/lucid@0.7.8/src/plutus/mod.ts";
Static Methods
from(data: Datum | Redeemer): PlutusData
Convert Cbor encoded data to PlutusData
fromJson(json: Json): PlutusData
Convert conveniently a Json object (e.g. Metadata) to PlutusData. Note: Constructor cannot be used here.
to(plutusData: PlutusData): Datum | Redeemer
Convert PlutusData to Cbor encoded data
toJson(plutusData: PlutusData): Json
Convert PlutusData to a Json object. Note: Constructor cannot be used here, also only bytes/integers as Json keys.