Class: UTXOInput
A UTXO transaction input.
Hierarchy
↳
UTXOInput
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new UTXOInput(transactionId, transactionOutputIndex)
Parameters
| Name | Type | Description |
|---|---|---|
transactionId | string | The ID of the transaction it is an input of. |
transactionOutputIndex | number | The index of the input within the transaction. |
Overrides
Properties
type
• Readonly type: InputType
Inherited from
transactionId
• transactionId: string
The transaction ID.
transactionOutputIndex
• transactionOutputIndex: number
The output index.
Methods
getType
▸ getType(): InputType
Get the type of input.
Returns
Inherited from
fromOutputId
▸ Static fromOutputId(outputId): UTXOInput
Create a UTXOInput from a given output ID.
Parameters
| Name | Type |
|---|---|
outputId | string |