Helios API/ API Reference/ Classes/
TxInput
TxInput base-type
Hierarchy
-
↳
TxInput
↳↳
UTxO
↳↳
TxRefInput
Index
Constructors
constructor
• new TxInput(outputId
, output?
)
Parameters
Name | Type | Description |
---|---|---|
outputId | TxOutputId | |
output? | null | TxOutput | used during building, not part of serialization |
Overrides
Properties
outputId
• Readonly
outputId: TxOutputId
Accessors
address
• get
address(): Address
Shortcut
Returns
origOutput
• get
origOutput(): TxOutput
Backward compatible alias for TxInput.output
Returns
output
• get
output(): TxOutput
Returns
txId
• get
txId(): TxId
Returns
Deprecated
utxoIdx
• get
utxoIdx(): number
Returns
number
Deprecated
value
• get
value(): Value
Shortcut
Returns
Methods
dump
▸ dump(): any
Returns
any
eq
▸ eq(other
): boolean
Parameters
Name | Type |
---|---|
other | TxInput |
Returns
boolean
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toFullCbor
▸ toFullCbor(): number
[]
Returns
number
[]
fromCbor
▸ Static
fromCbor(rawBytes
): TxInput
Parameters
Name | Type |
---|---|
rawBytes | string | number [] |
Returns
fromFullCbor
▸ Static
fromFullCbor(rawBytes
): TxInput
Deserializes TxOutput format used by wallet connector
Parameters
Name | Type |
---|---|
rawBytes | string | number [] |
Returns
sumValue
▸ Static
sumValue(inputs
): Value
Parameters
Name | Type |
---|---|
inputs | TxInput [] |