Package org.stellar.sdk
Class Transaction
java.lang.Object
org.stellar.sdk.AbstractTransaction
org.stellar.sdk.Transaction
Represents Transaction in Stellar network.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.will be removed in upcoming releases. -
Field Summary
Fields inherited from class org.stellar.sdk.AbstractTransaction
MIN_BASE_FEE -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TransactionfromV0EnvelopeXdr(AccountConverter accountConverter, org.stellar.sdk.xdr.TransactionV0Envelope envelope, Network network) static TransactionfromV0EnvelopeXdr(org.stellar.sdk.xdr.TransactionV0Envelope envelope, Network network) static TransactionfromV1EnvelopeXdr(AccountConverter accountConverter, org.stellar.sdk.xdr.TransactionV1Envelope envelope, Network network) static TransactionfromV1EnvelopeXdr(org.stellar.sdk.xdr.TransactionV1Envelope envelope, Network network) getClaimableBalanceId(int index) Returns the claimable balance ID for the CreateClaimableBalanceOperation at the given index within the transaction.longgetFee()fee paid for transaction in stroops (1 stroop = 0.0000001 XLM).@NonNull MemogetMemo()Memo attached to the transaction.@NonNull Operation[]Operations included in the transaction.The preconditions for the transaction.longThe sequence number of the account creating this transaction.org.stellar.sdk.xdr.SorobanTransactionDataThe Soroban data for the transaction.@NonNull StringThe source account for this transaction.Gets the time bounds defined for the transaction.inthashCode()booleanReturns true if this transaction is a Soroban transaction.byte[]Returns signature base.org.stellar.sdk.xdr.TransactionEnvelopeGenerates TransactionEnvelope XDR object.Methods inherited from class org.stellar.sdk.AbstractTransaction
addSignature, fromEnvelopeXdr, fromEnvelopeXdr, fromEnvelopeXdr, fromEnvelopeXdr, getAccountConverter, getNetwork, getSignatures, getTransactionSignatureBase, hash, hashHex, sign, sign, toEnvelopeXdrBase64
-
Method Details
-
signatureBase
public byte[] signatureBase()Description copied from class:AbstractTransactionReturns signature base.- Specified by:
signatureBasein classAbstractTransaction- Returns:
- the signature base
-
getTimeBounds
Gets the time bounds defined for the transaction.- Returns:
- TimeBounds
-
getClaimableBalanceId
Returns the claimable balance ID for the CreateClaimableBalanceOperation at the given index within the transaction.- Throws:
IOException
-
fromV0EnvelopeXdr
public static Transaction fromV0EnvelopeXdr(AccountConverter accountConverter, org.stellar.sdk.xdr.TransactionV0Envelope envelope, Network network) -
fromV0EnvelopeXdr
public static Transaction fromV0EnvelopeXdr(org.stellar.sdk.xdr.TransactionV0Envelope envelope, Network network) -
fromV1EnvelopeXdr
public static Transaction fromV1EnvelopeXdr(AccountConverter accountConverter, org.stellar.sdk.xdr.TransactionV1Envelope envelope, Network network) -
fromV1EnvelopeXdr
public static Transaction fromV1EnvelopeXdr(org.stellar.sdk.xdr.TransactionV1Envelope envelope, Network network) -
toEnvelopeXdr
public org.stellar.sdk.xdr.TransactionEnvelope toEnvelopeXdr()Generates TransactionEnvelope XDR object.- Specified by:
toEnvelopeXdrin classAbstractTransaction
-
isSorobanTransaction
public boolean isSorobanTransaction()Returns true if this transaction is a Soroban transaction.- Returns:
- true if this transaction is a Soroban transaction.
-
equals
-
hashCode
public int hashCode() -
getFee
public long getFee()fee paid for transaction in stroops (1 stroop = 0.0000001 XLM). -
getSourceAccount
The source account for this transaction. -
getSequenceNumber
public long getSequenceNumber()The sequence number of the account creating this transaction. -
getOperations
Operations included in the transaction. -
getMemo
Memo attached to the transaction. -
getPreconditions
The preconditions for the transaction. -
getSorobanData
public org.stellar.sdk.xdr.SorobanTransactionData getSorobanData()The Soroban data for the transaction.
-