Class TransactionV0

java.lang.Object
org.stellar.sdk.xdr.TransactionV0
All Implemented Interfaces:
XdrElement

public class TransactionV0 extends Object implements XdrElement
TransactionV0's original definition in the XDR file is:
 struct TransactionV0
 {
     uint256 sourceAccountEd25519;
     uint32 fee;
     SequenceNumber seqNum;
     TimeBounds* timeBounds;
     Memo memo;
     Operation operations<MAX_OPS_PER_TX>;
     union switch (int v)
     {
     case 0:
         void;
     }
     ext;
 };
 
  • Constructor Details

    • TransactionV0

      public TransactionV0()
    • TransactionV0

      public TransactionV0(Uint256 sourceAccountEd25519, Uint32 fee, SequenceNumber seqNum, TimeBounds timeBounds, Memo memo, Operation[] operations, TransactionV0.TransactionV0Ext ext)
      Creates a new TransactionV0 instance.
      Parameters:
      sourceAccountEd25519 - the sourceAccountEd25519 field value
      fee - the fee field value
      seqNum - the seqNum field value
      timeBounds - the timeBounds field value
      memo - the memo field value
      operations - the operations field value
      ext - the ext field value
  • Method Details

    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Description copied from interface: XdrElement
      Encodes this value to XDR and writes it to the provided stream.
      Specified by:
      encode in interface XdrElement
      Parameters:
      stream - the destination XDR output stream
      Throws:
      IOException - if an I/O error occurs while writing the value
    • decode

      public static TransactionV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException
      Throws:
      IOException
    • decode

      public static TransactionV0 decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • fromXdrBase64

      public static TransactionV0 fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static TransactionV0 fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • toJson

      public String toJson()
      Description copied from interface: XdrElement
      Serializes this value to JSON.
      Specified by:
      toJson in interface XdrElement
      Returns:
      the JSON representation of this value
    • fromJson

      public static TransactionV0 fromJson(String json)
    • builder

      public static TransactionV0.TransactionV0Builder builder()
    • toBuilder

    • getSourceAccountEd25519

      public Uint256 getSourceAccountEd25519()
      Value of the sourceAccountEd25519 field.
      Returns:
      the sourceAccountEd25519 field value
    • getFee

      public Uint32 getFee()
      Value of the fee field.
      Returns:
      the fee field value
    • getSeqNum

      public SequenceNumber getSeqNum()
      Value of the seqNum field.
      Returns:
      the seqNum field value
    • getTimeBounds

      public TimeBounds getTimeBounds()
      Value of the timeBounds field.
      Returns:
      the timeBounds field value
    • getMemo

      public Memo getMemo()
      Value of the memo field.
      Returns:
      the memo field value
    • getOperations

      public Operation[] getOperations()
      Value of the operations field.
      Returns:
      the operations field value
    • getExt

      Value of the ext field.
      Returns:
      the ext field value
    • setSourceAccountEd25519

      public void setSourceAccountEd25519(Uint256 sourceAccountEd25519)
      Value of the sourceAccountEd25519 field.
      Parameters:
      sourceAccountEd25519 - the sourceAccountEd25519 field value
    • setFee

      public void setFee(Uint32 fee)
      Value of the fee field.
      Parameters:
      fee - the fee field value
    • setSeqNum

      public void setSeqNum(SequenceNumber seqNum)
      Value of the seqNum field.
      Parameters:
      seqNum - the seqNum field value
    • setTimeBounds

      public void setTimeBounds(TimeBounds timeBounds)
      Value of the timeBounds field.
      Parameters:
      timeBounds - the timeBounds field value
    • setMemo

      public void setMemo(Memo memo)
      Value of the memo field.
      Parameters:
      memo - the memo field value
    • setOperations

      public void setOperations(Operation[] operations)
      Value of the operations field.
      Parameters:
      operations - the operations field value
    • setExt

      public void setExt(TransactionV0.TransactionV0Ext ext)
      Value of the ext field.
      Parameters:
      ext - the ext field value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object