Package org.stellar.sdk
Class Transaction
- java.lang.Object
-
- org.stellar.sdk.AbstractTransaction
-
- org.stellar.sdk.Transaction
-
public class Transaction extends AbstractTransaction
Represents Transaction in Stellar network.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Transaction.Builder
Deprecated.will be removed in upcoming releases.
-
Field Summary
-
Fields inherited from class org.stellar.sdk.AbstractTransaction
MIN_BASE_FEE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
static Transaction
fromV0EnvelopeXdr(AccountConverter accountConverter, org.stellar.sdk.xdr.TransactionV0Envelope envelope, Network network)
static Transaction
fromV0EnvelopeXdr(org.stellar.sdk.xdr.TransactionV0Envelope envelope, Network network)
static Transaction
fromV1EnvelopeXdr(AccountConverter accountConverter, org.stellar.sdk.xdr.TransactionV1Envelope envelope, Network network)
static Transaction
fromV1EnvelopeXdr(org.stellar.sdk.xdr.TransactionV1Envelope envelope, Network network)
java.lang.String
getClaimableBalanceId(int index)
Returns the claimable balance ID for the CreateClaimableBalanceOperation at the given index within the transaction.long
getFee()
Returns fee paid for transaction in stroops (1 stroop = 0.0000001 XLM).Memo
getMemo()
Operation[]
getOperations()
Returns operations in this transaction.TransactionPreconditions
getPreconditions()
Get the pre-conditions for the transactionlong
getSequenceNumber()
org.stellar.sdk.xdr.SorobanTransactionData
getSorobanData()
Get the Soroban data for the transaction.java.lang.String
getSourceAccount()
TimeBounds
getTimeBounds()
Gets the time bounds defined for the transaction.int
hashCode()
boolean
isSorobanTransaction()
Returns true if this transaction is a Soroban transaction.byte[]
signatureBase()
Returns signature base.org.stellar.sdk.xdr.TransactionEnvelope
toEnvelopeXdr()
Generates 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 Detail
-
signatureBase
public byte[] signatureBase()
Description copied from class:AbstractTransaction
Returns signature base.- Specified by:
signatureBase
in classAbstractTransaction
-
getSourceAccount
public java.lang.String getSourceAccount()
-
getSequenceNumber
public long getSequenceNumber()
-
getMemo
public Memo getMemo()
-
getSorobanData
public org.stellar.sdk.xdr.SorobanTransactionData getSorobanData()
Get the Soroban data for the transaction.- Returns:
- SorobanTransactionData if the transaction includes SorobanData, otherwise null.
-
getPreconditions
public TransactionPreconditions getPreconditions()
Get the pre-conditions for the transaction- Returns:
- TransactionPreconditions
-
getTimeBounds
public TimeBounds getTimeBounds()
Gets the time bounds defined for the transaction.- Returns:
- TimeBounds
-
getFee
public long getFee()
Returns fee paid for transaction in stroops (1 stroop = 0.0000001 XLM).
-
getOperations
public Operation[] getOperations()
Returns operations in this transaction.
-
getClaimableBalanceId
public java.lang.String getClaimableBalanceId(int index) throws java.io.IOException
Returns the claimable balance ID for the CreateClaimableBalanceOperation at the given index within the transaction.- Throws:
java.io.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:
toEnvelopeXdr
in classAbstractTransaction
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
isSorobanTransaction
public boolean isSorobanTransaction()
Returns true if this transaction is a Soroban transaction.- Returns:
- true if this transaction is a Soroban transaction.
-
-