Class TxOut


  • public class TxOut
    extends Object

    TxOut class.

    • Constructor Detail

      • TxOut

        public TxOut​(Int amount,
                     Script scriptPubkey)

        Constructor for TxOut.

        Parameters:
        amount - a Int object
        scriptPubkey - a Script object
    • Method Detail

      • serialize

        public byte[] serialize()
        Returns the byte serialization of the transaction output
        Returns:
        an array of byte objects
      • getAmount

        public Int getAmount()

        Getter for the field amount.

        Returns:
        a Int object
      • getScriptPubkey

        public Script getScriptPubkey()

        Getter for the field scriptPubkey.

        Returns:
        a Script object