TransactionInfo

public struct TransactionInfo : Decodable, Sendable

Detailed information about a Soroban transaction including status, ledger, and result XDR.

  • Indicates whether the transaction was successful or not.

    Declaration

    Swift

    public let status: String
  • The 1-based index of the transaction among all transactions included in the ledger.

    Declaration

    Swift

    public let applicationOrder: Int
  • Indicates whether the transaction was fee bumped.

    Declaration

    Swift

    public let feeBump: Bool
  • A base64 encoded string of the raw TransactionEnvelope XDR struct for this transaction.

    Declaration

    Swift

    public let envelopeXdr: String
  • A base64 encoded string of the raw TransactionResult XDR struct for this transaction.

    Declaration

    Swift

    public let resultXdr: String
  • A base64 encoded string of the raw TransactionMeta XDR struct for this transaction.

    Declaration

    Swift

    public let resultMetaXdr: String
  • (optional) A base64 encoded slice of xdr.DiagnosticEvent. This is only present if the ENABLE_SOROBAN_DIAGNOSTIC_EVENTS has been enabled in the stellar-core config.

    Declaration

    Swift

    public let diagnosticEventsXdr: [String]?
  • The sequence number of the ledger which included the transaction.

    Declaration

    Swift

    public let ledger: Int
  • The unix timestamp of when the transaction was included in the ledger.

    Declaration

    Swift

    public let createdAt: Int
  • hex-encoded transaction hash string. Only available for protocol version >= 22

    Declaration

    Swift

    public let txHash: String?
  • events for the transaction. Only available for protocol version >= 23

    Declaration

    Swift

    public let events: TransactionEvents?
  • Declaration

    Swift

    public init(from decoder: Decoder) throws