Package org.stellar.sdk.xdr
Class TransactionV0
java.lang.Object
org.stellar.sdk.xdr.TransactionV0
- All Implemented Interfaces:
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;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classTransactionV0Ext's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionV0(Uint256 sourceAccountEd25519, Uint32 fee, SequenceNumber seqNum, TimeBounds timeBounds, Memo memo, Operation[] operations, TransactionV0.TransactionV0Ext ext) Creates a newTransactionV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionV0decode(XdrDataInputStream stream) static TransactionV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionV0static TransactionV0fromXdrBase64(String xdr) static TransactionV0fromXdrByteArray(byte[] xdr) getExt()Value of theextfield.getFee()Value of thefeefield.getMemo()Value of thememofield.Value of theoperationsfield.Value of theseqNumfield.Value of thesourceAccountEd25519field.Value of thetimeBoundsfield.inthashCode()voidValue of theextfield.voidValue of thefeefield.voidValue of thememofield.voidsetOperations(Operation[] operations) Value of theoperationsfield.voidsetSeqNum(SequenceNumber seqNum) Value of theseqNumfield.voidsetSourceAccountEd25519(Uint256 sourceAccountEd25519) Value of thesourceAccountEd25519field.voidsetTimeBounds(TimeBounds timeBounds) Value of thetimeBoundsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
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 newTransactionV0instance.- Parameters:
sourceAccountEd25519- thesourceAccountEd25519field valuefee- thefeefield valueseqNum- theseqNumfield valuetimeBounds- thetimeBoundsfield valuememo- thememofield valueoperations- theoperationsfield valueext- theextfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getSourceAccountEd25519
Value of thesourceAccountEd25519field.- Returns:
- the
sourceAccountEd25519field value
-
getFee
Value of thefeefield.- Returns:
- the
feefield value
-
getSeqNum
Value of theseqNumfield.- Returns:
- the
seqNumfield value
-
getTimeBounds
Value of thetimeBoundsfield.- Returns:
- the
timeBoundsfield value
-
getMemo
Value of thememofield.- Returns:
- the
memofield value
-
getOperations
Value of theoperationsfield.- Returns:
- the
operationsfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setSourceAccountEd25519
Value of thesourceAccountEd25519field.- Parameters:
sourceAccountEd25519- thesourceAccountEd25519field value
-
setFee
Value of thefeefield.- Parameters:
fee- thefeefield value
-
setSeqNum
Value of theseqNumfield.- Parameters:
seqNum- theseqNumfield value
-
setTimeBounds
Value of thetimeBoundsfield.- Parameters:
timeBounds- thetimeBoundsfield value
-
setMemo
Value of thememofield.- Parameters:
memo- thememofield value
-
setOperations
Value of theoperationsfield.- Parameters:
operations- theoperationsfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-