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

x/lucid/mod.ts>Utils#nativeScriptFromJson

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 Utils.prototype.nativeScriptFromJson
Re-export
import { Utils } from "https://deno.land/x/lucid@0.9.6/mod.ts";

Convert a native script from Json to the Hex representation. It follows this Json format: https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md