Show / Hide Table of Contents

TransactionInput Class

Used to represent the data structure of the transaction input.

In a UTXO system, the input of a transaction must come from the output of another transaction that existed before.

To confirm the outputs of the previous transactions, we require two things:

  1. The hash of the previous transaction referenced ( PrevHash )

  2. The index of this input in the output list of the previous transaction ( PrevIndex )

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class TransactionInput: IApiInterface

Attributes

NameDescription
PrevHash Returns the hash of the previous transaction
PrevIndex Returns the index of this input in the output list of the previous transaction

Constructor

The TransactionInput object is constructed through GetInputs() of the Transaction object.