Package ch.bitagent.bitcoin.lib.tx
Class TxOut
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.tx.TxOut
-
public class TxOut extends Object
TxOut class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntgetAmount()Getter for the fieldamount.ScriptgetScriptPubkey()Getter for the fieldscriptPubkey.static TxOutparse(ByteArrayInputStream stream)Takes a byte stream and parses the txOutput at the start.byte[]serialize()Returns the byte serialization of the transaction outputStringtoString()
-
-
-
Method Detail
-
parse
public static TxOut parse(ByteArrayInputStream stream)
Takes a byte stream and parses the txOutput at the start. Returns a TxOut object.- Parameters:
stream- aByteArrayInputStreamobject- Returns:
- a
TxOutobject
-
serialize
public byte[] serialize()
Returns the byte serialization of the transaction output- Returns:
- an array of
byteobjects
-
-