Skip to main content
Module

x/lucid/mod.ts>Core.encode_json_str_to_native_script

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
Go to Latest
function Core.encode_json_str_to_native_script
import { Core } from "https://deno.land/x/lucid@0.8.1/mod.ts";
const { encode_json_str_to_native_script } = Core;

Receives a script JSON string and returns a NativeScript. Cardano Wallet and Node styles are supported.

self_xpub is expected to be a Bip32PublicKey as hex-encoded bytes

Parameters

json
self_xpub
schema