Skip to content

PlutusData

Extends: Resource

Description

The Plutus language, which may be used for minting policies and validators, operates on a specific datatype called PlutusData.

The Plutus language, which may be used for minting policies and validators, operates on a specific datatype called PlutusData.

Method Descriptions

to_json

func to_json() -> Dictionary

equals

func equals(other: PlutusData) -> bool

serialize

func serialize() -> SerializeResult

Serialize into CBOR format.

wrap (static)

func wrap(v: Variant) -> PlutusData

Recursively unwraps Objects to Plutus compatible data types

deserialize (static)

func deserialize(bytes: PackedByteArray) -> PlutusData

Deserialize from CBOR format.

from_json (static)

func from_json(json: Dictionary) -> PlutusData

Converts parsed JSON to PlutusData

apply_script_parameters (static)

func apply_script_parameters(script: PlutusScript, params: Array[PlutusData]) -> PlutusScript

Apply the given [param params] to the passed [param script]. This only makes sense in unapplied, parameterized scripts.