Helios API/ API Reference/ Classes/

ConstrData

Represents a tag index and a list of UplcData fields.

Hierarchy

Index

Constructors

constructor

new ConstrData(index, fields)

Parameters

NameType
indexnumber
fieldsUplcData[]

Overrides

UplcData.constructor

Accessors

memSize

get memSize(): number

Estimate of memory usage during validation

Returns

number

Inherited from

UplcData.memSize

Methods

isSame

isSame(other): boolean

Compares the schema jsons

Parameters

NameType
otherUplcData

Returns

boolean

Inherited from

UplcData.isSame

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

UplcData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

UplcData.toCborHex

toSchemaJson

toSchemaJson(): string

Returns

string

Inherited from

UplcData.toSchemaJson

transfer

transfer(other): any

Parameters

NameType
otherTransferUplcAst

Returns

any

Inherited from

UplcData.transfer

fromCbor

Static fromCbor(bytes): ConstrData

Parameters

NameType
bytesnumber[]

Returns

ConstrData

Overrides

UplcData.fromCbor