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

x/lucid/src/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.
Go to Latest
function Core.encode_json_str_to_native_script
import { Core } from "https://deno.land/x/lucid@0.7.8/src/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