uplc.uplcdecoder.decodefromhex
Home > @blaze-cardano/uplc > UPLCDecoder > decodeFromHex
UPLCDecoder.decodeFromHex() method
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.
Signature:
static decodeFromHex(hex: string): ParsedProgram;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| hex | string | The hexadecimal string representing the binary data of a UPLC program. | 
Returns:
ParsedProgram
{ParsedProgram} - The decoded UPLC program.