Skip to main content
Version: 0.3.6

uplc.uplcencoder.encodeconst

Home > @blaze-cardano/uplc > UPLCEncoder > encodeConst

UPLCEncoder.encodeConst() method

Encodes a constant value with its type.

Signature:

encodeConst(type: DataTypeType, value: Data): void;

Parameters

Parameter

Type

Description

type

DataTypeType

The type of the constant.

value

Data

The value of the constant.

Returns:

void