Skip to main content
Version: 0.2.38

sdk.uplcencoder.encodeconst

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

UPLCEncoder.encodeConst() method

Encodes a constant value with its type.

Signature:

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

Parameters

Parameter

Type

Description

type

DataType

The type of the constant.

value

Data

The value of the constant.

Returns:

void