Skip to main content
Version: Next

uplc.uplcdecoder

Home > @blaze-cardano/uplc > 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:

export declare class UPLCDecoder extends FlatDecoder 

Extends: FlatDecoder

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.