AnchorTransactionRequest
public struct AnchorTransactionRequest : Sendable
Request parameters for retrieving a single transaction via SEP-0006.
This struct encapsulates the parameters needed to fetch details about a specific transaction. The transaction can be identified by its internal ID, Stellar transaction ID, or external transaction ID. At least one of these identifiers must be provided.
See also:
-
JWT previously received from the anchor via the SEP-10 authentication flow.
Declaration
Swift
public var jwt: String? -
The internal ID of the transaction assigned by the anchor.
Declaration
Swift
public var id: String? -
The Stellar transaction hash of the transaction.
Declaration
Swift
public var stellarTransactionId: String? -
The external transaction ID assigned by external systems.
Declaration
Swift
public var externalTransactionId: String? -
Language code specified using RFC 4646. Defaults to en if not specified. Error fields and other human readable messages in the response should be in this language.
Declaration
Swift
public var lang: String? -
Creates a new single transaction request.
At least one of the transaction identifiers (id, stellarTransactionId, or externalTransactionId) must be provided.
Declaration
Swift
public init(id: String? = nil, stellarTransactionId: String? = nil, externalTransactionId: String? = nil, jwt: String? = nil)Parameters
idOptional internal transaction ID
stellarTransactionIdOptional Stellar transaction hash
externalTransactionIdOptional external transaction ID
jwtOptional JWT token from SEP-10 authentication
View on GitHub
Install in Dash