Package org.consensusj.bitcoinj.signing
Class TransactionInputDataUtxo
java.lang.Object
org.consensusj.bitcoinj.signing.TransactionInputDataUtxo
- All Implemented Interfaces:
TransactionInputData
,Utxo
Immutable aggregate of data for TransactionInput. This holds the same data as
Utxo.Complete
and
the two may be combined in the future.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.consensusj.bitcoinj.signing.Utxo
Utxo.Basic, Utxo.Complete, Utxo.Signable
-
Constructor Summary
ConstructorDescriptionTransactionInputDataUtxo
(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount, org.bitcoinj.script.Script script) -
Method Summary
Modifier and TypeMethodDescriptionorg.bitcoinj.base.Coin
amount()
int
index()
org.bitcoinj.script.Script
script()
prevOut ScriptPubKeyorg.bitcoinj.core.TransactionInput
org.bitcoinj.core.TransactionOutPoint
This probably shouldn't be here but is needed for proper operation with bitcoinjtoUtxo()
org.bitcoinj.base.Sha256Hash
txId()
-
Constructor Details
-
TransactionInputDataUtxo
public TransactionInputDataUtxo(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount, org.bitcoinj.script.Script script) - Parameters:
txId
- parent txId (shouldn't be needed but Transaction.addSignedInput currently needs an Outpoint)index
- index of unspent outputamount
- amount of unspent outputscript
- This is the scriptPubKey of the utxo we want to spend
-
-
Method Details
-
txId
-
index
-
amount
- Specified by:
amount
in interfaceTransactionInputData
-
script
Description copied from interface:TransactionInputData
prevOut ScriptPubKey- Specified by:
script
in interfaceTransactionInputData
-
toMutableInput
-
toUtxo
- Specified by:
toUtxo
in interfaceTransactionInputData
-
toOutPoint
Description copied from interface:TransactionInputData
This probably shouldn't be here but is needed for proper operation with bitcoinj- Specified by:
toOutPoint
in interfaceTransactionInputData
- Returns:
- A Transaction "outpoint" pointing to the utxo this input will spend.
-