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:
-
The hash of the previous transaction referenced ( PrevHash )
-
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
Attributes
Name | Description | |
---|---|---|
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.