Helios API/ API Reference/ Classes/

UplcData

Base class for Plutus-core data classes (not the same as Plutus-core value classes!)

Hierarchy

Index

Constructors

constructor

new UplcData()

Inherited from

CborData.constructor

Accessors

memSize

get memSize(): number

Estimate of memory usage during validation

Returns

number

Methods

isSame

isSame(other): boolean

Compares the schema jsons

Parameters

NameType
otherUplcData

Returns

boolean

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

CborData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

CborData.toCborHex

toSchemaJson

toSchemaJson(): string

Returns

string

transfer

transfer(other): any

Parameters

NameType
otherTransferUplcAst

Returns

any

fromCbor

Static fromCbor(bytes): UplcData

Parameters

NameType
bytesstring | number[]

Returns

UplcData