Package org.bitcoindevkit
Class TxOut
-
- All Implemented Interfaces:
-
org.bitcoindevkit.Disposable
public final class TxOut implements Disposable
Bitcoin transaction output.
Defines new coins to be created as a result of the transaction, along with spending conditions ("script", aka "output script"), which an input spending it must satisfy.
An output that is not yet spent by an input is called Unspent Transaction Output ("UTXO").
-
-
Field Summary
Fields Modifier and Type Field Description private ULong
value
private Script
scriptPubkey
-
Method Summary
Modifier and Type Method Description final ULong
getValue()
The value of the output, in satoshis. final Unit
setValue(ULong value)
The value of the output, in satoshis. final Script
getScriptPubkey()
The script which must be satisfied for the output to be spent. final Unit
setScriptPubkey(Script scriptPubkey)
The script which must be satisfied for the output to be spent. Unit
destroy()
-
-
-
Method Detail
-
getScriptPubkey
final Script getScriptPubkey()
The script which must be satisfied for the output to be spent.
-
setScriptPubkey
final Unit setScriptPubkey(Script scriptPubkey)
The script which must be satisfied for the output to be spent.
-
-