AnchorTransactionsRequest
public struct AnchorTransactionsRequest : Sendable
Request parameters for retrieving transaction history via SEP-0006.
This struct encapsulates all the parameters needed to fetch a list of historical transactions for a specific asset and account. The response includes details about deposits, withdrawals, and their current statuses. This endpoint is useful for displaying transaction history to users within a wallet application.
See also:
-
The code of the asset of interest. Examples: BTC, ETH, USD, INR, etc.
Declaration
Swift
public var assetCode: String -
The stellar account ID involved in the transactions. If the service requires SEP-10 authentication, this parameter must match the authenticated account.
Declaration
Swift
public var account: String -
JWT previously received from the anchor via the SEP-10 authentication flow.
Declaration
Swift
public var jwt: String? -
The response should contain transactions starting on or after this date and time.
Declaration
Swift
public var noOlderThan: Date? -
The response should contain at most this number of transactions.
Declaration
Swift
public var limit: Int? -
A comma-separated list of transaction kinds to filter by. Possible values are: deposit, deposit-exchange, withdrawal, withdrawal-exchange.
Declaration
Swift
public var kind: String? -
The response should contain transactions starting prior to this ID (exclusive). Used for pagination.
Declaration
Swift
public var pagingId: 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 transactions history request.
Declaration
Swift
public init(assetCode: String, account: String, jwt: String? = nil)Parameters
assetCodeThe code of the asset to query transactions for
accountThe Stellar account ID involved in the transactions
jwtOptional JWT token from SEP-10 authentication
View on GitHub
Install in Dash