Helios API/ API Reference/ Classes/

TxRefInput

Use TxInput instead

Deprecated

Hierarchy

Index

Constructors

constructor

new TxRefInput(outputId, output?)

Parameters

NameTypeDescription
outputIdTxOutputId
output?null | TxOutputused during building, not part of serialization

Inherited from

TxInput.constructor

Properties

outputId

Readonly outputId: TxOutputId

Inherited from

TxInput.outputId

Accessors

address

get address(): Address

Shortcut

Returns

Address

Inherited from

TxInput.address

origOutput

get origOutput(): TxOutput

Backward compatible alias for TxInput.output

Returns

TxOutput

Inherited from

TxInput.origOutput

output

get output(): TxOutput

Returns

TxOutput

Inherited from

TxInput.output

txId

get txId(): TxId

Returns

TxId

Deprecated

Inherited from

TxInput.txId

utxoIdx

get utxoIdx(): number

Returns

number

Deprecated

Inherited from

TxInput.utxoIdx

value

get value(): Value

Shortcut

Returns

Value

Inherited from

TxInput.value

Methods

dump

dump(): any

Returns

any

Inherited from

TxInput.dump

eq

eq(other): boolean

Parameters

NameType
otherTxInput

Returns

boolean

Inherited from

TxInput.eq

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

TxInput.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

TxInput.toCborHex

toFullCbor

toFullCbor(): number[]

Returns

number[]

Inherited from

TxInput.toFullCbor

fromCbor

Static fromCbor(rawBytes): TxInput

Parameters

NameType
rawBytesstring | number[]

Returns

TxInput

Inherited from

TxInput.fromCbor

fromFullCbor

Static fromFullCbor(rawBytes): TxInput

Deserializes TxOutput format used by wallet connector

Parameters

NameType
rawBytesstring | number[]

Returns

TxInput

Inherited from

TxInput.fromFullCbor

sumValue

Static sumValue(inputs): Value

Parameters

NameType
inputsTxInput[]

Returns

Value

Inherited from

TxInput.sumValue