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

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