Skip to main content
Version: Next

sdk.uplcdecoder.fromhex

Home > @blaze-cardano/sdk > UPLCDecoder > fromHex

UPLCDecoder.fromHex() method

Creates a UPLCDecoder instance from a hexadecimal string.

Signature:

static fromHex(hex: string): UPLCDecoder;

Parameters

Parameter

Type

Description

hex

string

Hexadecimal string of a UPLC program's binary data.

Returns:

UPLCDecoder

{UPLCDecoder} Initialized UPLCDecoder with the decoded data.