Helios API/ API Reference/ Classes/

TxOutputId

Id of a Utxo

Hierarchy

Index

Constructors

constructor

new TxOutputId(...args)

Parameters

NameType
...args[TxOutputIdProps] | [TxId, number | bigint]

Overrides

HeliosData.constructor

Accessors

txId

get txId(): TxId

Returns

TxId

utxoIdx

get utxoIdx(): number

Returns

number

Methods

_toUplcData

_toUplcData(): ConstrData

Returns

ConstrData

eq

eq(other): boolean

Parameters

NameType
otherTxOutputId

Returns

boolean

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

HeliosData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

HeliosData.toCborHex

toSchemaJson

toSchemaJson(): string

Returns

string

Inherited from

HeliosData.toSchemaJson

cleanConstructorArgs

Static cleanConstructorArgs(props): [HashProps | TxId, HInt | HIntProps]

Parameters

NameType
propsTxOutputIdProps

Returns

[HashProps | TxId, HInt | HIntProps]

comp

Static comp(a, b): number

Parameters

Returns

number

dummy

Static dummy(): TxOutputId

Returns

TxOutputId

fromCbor

Static fromCbor(rawBytes): TxOutputId

Parameters

NameType
rawBytesstring | number[]

Returns

TxOutputId

fromProps

Static fromProps(props): TxOutputId

Parameters

NameType
propsTxOutputId | TxOutputIdProps

Returns

TxOutputId

fromUplcCbor

Static fromUplcCbor(bytes): TxOutputId

Parameters

NameType
bytesstring | number[]

Returns

TxOutputId

fromUplcData

Static fromUplcData(data): TxOutputId

Parameters

NameType
dataUplcData

Returns

TxOutputId