Skip to main content
Module

x/lucid/mod.ts>C.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 C.encode_json_str_to_native_script
import { C } from "https://deno.land/x/lucid@0.9.6/mod.ts";
const { encode_json_str_to_native_script } = C;

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