import { PlutusScript } from "https://deno.land/x/lucid@0.7.9/src/core/wasm_modules/cardano_multiplatform_lib_web/cardano_multiplatform_lib.d.ts";
Methods
bytes(): Uint8Array
- The raw bytes of this compiled Plutus script.
- If you need "cborBytes" for cardano-cli use PlutusScript::to_bytes() instead.
free(): void
hash(namespace: number): ScriptHash
to_bytes(): Uint8Array
Static Methods
from_bytes(bytes: Uint8Array): PlutusScript
new(bytes: Uint8Array): PlutusScript
- 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.