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

x/lucid/src/mod.ts>Core.PlutusScript.new

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 Core.PlutusScript.new
import { Core } from "https://deno.land/x/lucid@0.7.8/src/mod.ts";
const { PlutusScript } = Core;
  • Creates a new Plutus script from the RAW bytes of the compiled script.
    • This does NOT include any CBOR encoding around these bytes (e.g. from "cborBytes" in cardano-cli)
    • If you creating this from those you should use PlutusScript::from_bytes() instead.