Package org.stellar.sdk
Class Transaction
java.lang.Object
org.stellar.sdk.AbstractTransaction
org.stellar.sdk.Transaction
Represents Transaction in Stellar network.
-
Field Summary
Fields inherited from class org.stellar.sdk.AbstractTransaction
MIN_BASE_FEE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Transaction
fromV0EnvelopeXdr
(TransactionV0Envelope envelope, Network network) static Transaction
fromV1EnvelopeXdr
(TransactionV1Envelope envelope, Network network) getClaimableBalanceId
(int index) Returns the claimable balance ID for the CreateClaimableBalanceOperation at the given index within the transaction.long
getFee()
Max fee paid for transaction in stroops (1 stroop = 0.0000001 XLM).@NonNull Memo
getMemo()
Memo attached to the transaction.@NonNull Operation[]
Operations included in the transaction.The preconditions for the transaction.long
The sequence number of the account creating this transaction.The Soroban data for the transaction.@NonNull String
The source account for this transaction.Gets the time bounds defined for the transaction.int
hashCode()
boolean
Returns true if this transaction is a Soroban transaction.byte[]
Returns signature base.Generates TransactionEnvelope XDR object.Methods inherited from class org.stellar.sdk.AbstractTransaction
addSignature, fromEnvelopeXdr, fromEnvelopeXdr, getNetwork, getSignatures, getTransactionSignatureBase, hash, hashHex, sign, sign, toEnvelopeXdrBase64
-
Method Details
-
signatureBase
public byte[] signatureBase()Description copied from class:AbstractTransaction
Returns signature base.- Specified by:
signatureBase
in 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.- Parameters:
index
- The index of the CreateClaimableBalanceOperation within the transaction, starting at 0- Returns:
- The claimable balance ID for the CreateClaimableBalanceOperation at the given index
-
fromV0EnvelopeXdr
-
fromV1EnvelopeXdr
-
toEnvelopeXdr
Generates TransactionEnvelope XDR object.- Specified by:
toEnvelopeXdr
in 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()Max 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
The Soroban data for the transaction.
-