Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/lucid/src/plutus/mod.ts>Data.toJson

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
method Data.toJson
import { Data } from "https://deno.land/x/lucid@0.8.1/src/plutus/mod.ts";

Convert PlutusData to a Json object. Note: Constructor cannot be used here, also only bytes/integers as Json keys.