Package org.stellar.sdk.xdr
Class Transaction
java.lang.Object
org.stellar.sdk.xdr.Transaction
- All Implemented Interfaces:
XdrElement
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>;
union switch (int v)
{
case 0:
void;
case 1:
SorobanTransactionData sorobanData;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classTransactionExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionTransaction(MuxedAccount sourceAccount, Uint32 fee, SequenceNumber seqNum, Preconditions cond, Memo memo, Operation[] operations, Transaction.TransactionExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static Transactiondecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic TransactionfromXdrBase64(String xdr) static TransactionfromXdrByteArray(byte[] xdr) getCond()getExt()getFee()getMemo()inthashCode()voidsetCond(Preconditions cond) voidvoidvoidvoidsetOperations(Operation[] operations) voidsetSeqNum(SequenceNumber seqNum) voidsetSourceAccount(MuxedAccount sourceAccount) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
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
- Specified by:
encodein interfaceXdrElement- 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
-