Skip to main content
Module

x/lucid/mod.ts>datumJsonToCbor

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
Latest
function datumJsonToCbor
import { datumJsonToCbor } from "https://deno.land/x/lucid@0.10.7/mod.ts";

This function is temporarily needed only, until Blockfrost returns the datum natively in Cbor. The conversion is ambigious, that's why it's better to get the datum directly in Cbor.

Parameters

json: DatumJson

Returns

Datum