import { Data } from "https://deno.land/x/lucid@0.5.2/src/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 obviously
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