Skip to main content
Version: Next

sdk.uplcdecoder

Home > @blaze-cardano/sdk > UPLCDecoder

UPLCDecoder class

This class provides decoding functionality for UPLC (Untyped Plutus Core) programs. It extends the FlatDecoder class to handle the specific structure of UPLC programs. The decoding process involves interpreting binary data into structured UPLC terms and types.

Signature:

declare class UPLCDecoder extends Parser 

Extends: Parser

Methods

Method

Modifiers

Description

decode()

Public method to decode a UPLC program from the UPLCDecoder instance

decodeFromHex(hex)

static

Decodes a UPLC program from a hexadecimal string. This method utilizes the fromHex method to create an instance of UPLCDecoder and then decodes the program using the decode method.

fromHex(hex)

static

Creates a UPLCDecoder instance from a hexadecimal string.