Package org.stellar.sdk.xdr
Class Transaction
java.lang.Object
org.stellar.sdk.xdr.Transaction
Transaction's original definition in the XDR file is:
struct Transaction { // account used to run the transaction MuxedAccount sourceAccount; // the fee the sourceAccount will pay uint32 fee; // sequence number to consume in the account SequenceNumber seqNum; // validity conditions Preconditions cond; Memo memo; Operation operations<MAX_OPS_PER_TX>; // reserved for future use union switch (int v) { case 0: void; case 1: SorobanTransactionData sorobanData; } ext; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
TransactionExt's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionTransaction
(MuxedAccount sourceAccount, Uint32 fee, SequenceNumber seqNum, Preconditions cond, Memo memo, Operation[] operations, Transaction.TransactionExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static Transaction
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static Transaction
fromXdrBase64
(String xdr) static Transaction
fromXdrByteArray
(byte[] xdr) getCond()
getExt()
getFee()
getMemo()
int
hashCode()
void
setCond
(Preconditions cond) void
void
void
void
setOperations
(Operation[] operations) void
setSeqNum
(SequenceNumber seqNum) void
setSourceAccount
(MuxedAccount sourceAccount) toString()
default String
default byte[]
-
Constructor Details
-
Transaction
public Transaction() -
Transaction
public Transaction(MuxedAccount sourceAccount, Uint32 fee, SequenceNumber seqNum, Preconditions cond, Memo memo, Operation[] operations, Transaction.TransactionExt ext)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSourceAccount
-
getFee
-
getSeqNum
-
getCond
-
getMemo
-
getOperations
-
getExt
-
setSourceAccount
-
setFee
-
setSeqNum
-
setCond
-
setMemo
-
setOperations
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-