Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lucid/src/core/libs/cardano_multiplatform_lib/cardano_multiplatform_lib.generated.js>PlutusScript

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
class PlutusScript
import { PlutusScript } from "https://deno.land/x/lucid@0.10.4/src/core/libs/cardano_multiplatform_lib/cardano_multiplatform_lib.generated.js";

Methods

  • The raw bytes of this compiled Plutus script.
    • If you need "cborBytes" for cardano-cli use PlutusScript::to_bytes() instead.
hash(namespace)

Static Methods

__wrap(ptr)
from_bytes(bytes)
new(bytes)
  • 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.