Helios API/ API Reference/ Classes/

TxInput

TxInput base-type

Hierarchy

Index

Constructors

constructor

new TxInput(outputId, output?)

Parameters

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

Overrides

CborData.constructor

Properties

outputId

Readonly outputId: TxOutputId

Accessors

address

get address(): Address

Shortcut

Returns

Address

origOutput

get origOutput(): TxOutput

Backward compatible alias for TxInput.output

Returns

TxOutput

output

get output(): TxOutput

Returns

TxOutput

txId

get txId(): TxId

Returns

TxId

Deprecated

utxoIdx

get utxoIdx(): number

Returns

number

Deprecated

value

get value(): Value

Shortcut

Returns

Value

Methods

dump

dump(): any

Returns

any

eq

eq(other): boolean

Parameters

NameType
otherTxInput

Returns

boolean

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

CborData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

CborData.toCborHex

toFullCbor

toFullCbor(): number[]

Returns

number[]

fromCbor

Static fromCbor(rawBytes): TxInput

Parameters

NameType
rawBytesstring | number[]

Returns

TxInput

fromFullCbor

Static fromFullCbor(rawBytes): TxInput

Deserializes TxOutput format used by wallet connector

Parameters

NameType
rawBytesstring | number[]

Returns

TxInput

sumValue

Static sumValue(inputs): Value

Parameters

NameType
inputsTxInput[]

Returns

Value