Helios API/ API Reference/ Interfaces/

UplcValue

UplcValue is passed around by Plutus-core expressions.

Implemented by

Index

Properties

assertUnit

assertUnit: () => UplcUnit

Type declaration

▸ (): UplcUnit

Returns

UplcUnit

bool

bool: boolean

bytes

bytes: number[]

copy

copy: (newSite: Site) => UplcValue

Type declaration

▸ (newSite): UplcValue

return a copy of the UplcValue at a different Site

Parameters
NameType
newSiteSite
Returns

UplcValue

data

data: UplcData

first

first: UplcValue

flatSize

flatSize: number

size taken up in serialized UPLC program (number of bits)

int

int: bigint

isAny

isAny: () => boolean

Type declaration

▸ (): boolean

Returns

boolean

isData

isData: () => boolean

Type declaration

▸ (): boolean

Returns

boolean

isList

isList: () => boolean

Type declaration

▸ (): boolean

Returns

boolean

isPair

isPair: () => boolean

Type declaration

▸ (): boolean

Returns

boolean

itemType

itemType: UplcType

length

length: number

only relevant for lists and maps

list

list: UplcValue[]

memSize

memSize: number

size in words (8 bytes, 64 bits) occupied in target node

second

second: UplcValue

site

site: Site

string

string: string

toFlatValue

toFlatValue: (bitWriter: BitWriter) => void

Type declaration

▸ (bitWriter): void

Parameters
NameType
bitWriterBitWriter
Returns

void

toFlatValueInternal

toFlatValueInternal: (bitWriter: BitWriter) => void

Type declaration

▸ (bitWriter): void

like toFlatValue(), but without the typebits

Parameters
NameType
bitWriterBitWriter
Returns

void

toString

toString: () => string

Type declaration

▸ (): string

Returns

string

transfer

transfer: (other: TransferUplcAst) => any

Type declaration

▸ (other): any

Parameters
NameType
otherTransferUplcAst
Returns

any

typeBits

typeBits: () => string

Type declaration

▸ (): string

Returns

string