Class Transaction

    • Method Detail

      • 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 class AbstractTransaction
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • isSorobanTransaction

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