Sep06WithdrawExchangeRequest

data class Sep06WithdrawExchangeRequest(val sourceAsset: String, val destinationAsset: String, val amount: String, val type: String, val jwt: String, val fundingMethod: String? = null, val quoteId: String? = null, val dest: String? = null, val destExtra: String? = null, val account: String? = null, val memo: String? = null, val memoType: String? = null, val countryCode: String? = null, val refundMemo: String? = null, val refundMemoType: String? = null, val customerId: String? = null, val locationId: String? = null, val walletName: String? = null, val walletUrl: String? = null, val lang: String? = null, val onChangeCallback: String? = null, val extraFields: Map<String, String>? = null)

Request to initiate a programmatic withdrawal with asset conversion (SEP-38 exchange).

A withdrawal exchange allows a user to send a Stellar asset to an anchor and receive a different off-chain asset in return. For example, sending USDC on Stellar and receiving EUR in a bank account. This requires coordination with SEP-38 for obtaining quotes.

Constructors

Link copied to clipboard
constructor(sourceAsset: String, destinationAsset: String, amount: String, type: String, jwt: String, fundingMethod: String? = null, quoteId: String? = null, dest: String? = null, destExtra: String? = null, account: String? = null, memo: String? = null, memoType: String? = null, countryCode: String? = null, refundMemo: String? = null, refundMemoType: String? = null, customerId: String? = null, locationId: String? = null, walletName: String? = null, walletUrl: String? = null, lang: String? = null, onChangeCallback: String? = null, extraFields: Map<String, String>? = null)

Properties

Link copied to clipboard

Stellar account that will send the withdrawal.

Link copied to clipboard

Amount of the source asset the user will send to the anchor. Should equal quote.sell_amount if a quote_id is provided.

Link copied to clipboard

ISO 3166-1 alpha-3 code of the user's current address.

Link copied to clipboard

SEP-12 customer ID if already known to the anchor.

Link copied to clipboard
val dest: String?

Destination account for the withdrawal.

Link copied to clipboard

Additional destination information.

Link copied to clipboard

Off-chain asset the user will receive, in SEP-38 Asset Identification Format (e.g., "iso4217:EUR"). Must match a value from SEP-38 /prices.

Link copied to clipboard

Additional fields required by the anchor.

Link copied to clipboard

Method of delivering the withdrawal (replaces deprecated type).

Link copied to clipboard
val jwt: String

SEP-10 JWT token for authentication. Required for all withdrawal requests.

Link copied to clipboard
val lang: String?

Language code (RFC 4646) for error messages.

Link copied to clipboard

ID of the chosen location for cash pickup.

Link copied to clipboard
val memo: String?

Memo value for the Stellar transaction.

Link copied to clipboard

Deprecated: Type of memo.

Link copied to clipboard

URL for transaction status update callbacks.

Link copied to clipboard

SEP-38 quote ID for firm pricing. When provided, the anchor must honor the quoted conversion rate if the Stellar transaction is created before the quote expires.

Link copied to clipboard

Memo for refund payments.

Link copied to clipboard

Type of the refund memo.

Link copied to clipboard

Code of the on-chain asset the user wants to withdraw. Must match a code in the /info response's withdraw-exchange object.

Link copied to clipboard

Type of withdrawal method. Deprecated but still required for compatibility.

Link copied to clipboard

Deprecated: Use client_domain in SEP-10 JWT instead.

Link copied to clipboard

Deprecated: Use client_domain in SEP-10 JWT instead.