Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/src/provider/blockfrost.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.
Latest
function datumJsonToCbor
import { datumJsonToCbor } from "https://deno.land/x/lucid@0.10.10/src/provider/blockfrost.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