Class Transaction


public class Transaction extends AbstractTransaction
Represents Transaction in Stellar network.
  • Method Details

    • signatureBase

      public byte[] signatureBase()
      Description copied from class: AbstractTransaction
      Returns signature base.
      Specified by:
      signatureBase in class AbstractTransaction
      Returns:
      the signature base
    • getTimeBounds

      public TimeBounds getTimeBounds()
      Gets the time bounds defined for the transaction.
      Returns:
      TimeBounds
    • getClaimableBalanceId

      public String getClaimableBalanceId(int index)
      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
    • signExtraSignersPayload

      public void signExtraSignersPayload(@NonNull @NonNull KeyPair signer)
      Signs the extra signers payloads for this transaction using the provided signer.
      Parameters:
      signer - the KeyPair of the signer to use for signing the extra signers payloads.
    • fromV0EnvelopeXdr

      public static Transaction fromV0EnvelopeXdr(TransactionV0Envelope envelope, Network network)
    • fromV1EnvelopeXdr

      public static Transaction fromV1EnvelopeXdr(TransactionV1Envelope envelope, Network network)
    • toEnvelopeXdr

      public TransactionEnvelope toEnvelopeXdr()
      Generates TransactionEnvelope XDR object.
      Specified by:
      toEnvelopeXdr in class AbstractTransaction
    • isSorobanTransaction

      public boolean isSorobanTransaction()
      Returns true if this transaction is a Soroban transaction.
      Returns:
      true if this transaction is a Soroban transaction.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getFee

      public long getFee()
      Max fee paid for transaction in stroops (1 stroop = 0.0000001 XLM).
      Returns:
      the fee in stroops
    • getSourceAccount

      @NonNull public @NonNull String getSourceAccount()
      The source account for this transaction.
      Returns:
      the source account ID
    • getSequenceNumber

      public long getSequenceNumber()
      The sequence number of the account creating this transaction.
      Returns:
      the sequence number
    • getOperations

      @NonNull public @NonNull Operation[] getOperations()
      Operations included in the transaction.
      Returns:
      the operations array
    • getMemo

      @NonNull public @NonNull Memo getMemo()
      Memo attached to the transaction.
      Returns:
      the memo
    • getPreconditions

      public TransactionPreconditions getPreconditions()
      The preconditions for the transaction.
      Returns:
      the transaction preconditions
    • getSorobanData

      public SorobanTransactionData getSorobanData()
      The Soroban data for the transaction.
      Returns:
      the Soroban data, or null if not a Soroban transaction