plutus-ledger-api-1.60.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.Envelope

Synopsis

compiledCodeEnvelopeForVersion #

Arguments

:: PlutusLedgerLanguage

Language of the compiled code, e.g. PlutusV3

-> CompiledCode serialised with CBOR and encoded in Base 16 (aka. HEX).

Envelope is a JSON object with the following fields: { "type": PlutusScriptV2, "description": "A description of the code", "cborHex": "..." }

writeCodeEnvelope #

Arguments

:: CompiledCode serialised with CBOR and encoded in Base 16 (aka. HEX) to a file on disk, using PlutusV3 by default.

Envelope is a JSON object with the following fields: { "type": PlutusScriptV3, "description": "A description of the code", "cborHex": "..." }

writeCodeEnvelopeForVersion #

Arguments

:: PlutusLedgerLanguage

Language of the compiled code, e.g. PlutusV3

-> CompiledCode serialised with CBOR and encoded in Base 16 (aka. HEX) to a file on disk.

Envelope is a JSON object with the following fields: { "type": PlutusScriptV2, "description": "A description of the code", "cborHex": "..." }