Skip to main content

Class: UTXOInput

A UTXO transaction input.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new UTXOInput(transactionId, transactionOutputIndex)

Parameters

NameTypeDescription
transactionIdstringThe ID of the transaction it is an input of.
transactionOutputIndexnumberThe index of the input within the transaction.

Overrides

Input.constructor

Properties

type

Readonly type: InputType

Inherited from

Input.type


transactionId

transactionId: string

The transaction ID.


transactionOutputIndex

transactionOutputIndex: number

The output index.

Methods

getType

getType(): InputType

Get the type of input.

Returns

InputType

Inherited from

Input.getType


fromOutputId

Static fromOutputId(outputId): UTXOInput

Create a UTXOInput from a given output ID.

Parameters

NameType
outputIdstring

Returns

UTXOInput