Sep24WithdrawRequest

data class Sep24WithdrawRequest(val assetCode: String, val jwt: String, val assetIssuer: String? = null, val destinationAsset: String? = null, val amount: String? = null, val quoteId: String? = null, val account: String? = null, val memo: String? = null, val memoType: String? = null, val walletName: String? = null, val walletUrl: String? = null, val lang: String? = null, val refundMemo: String? = null, val refundMemoType: String? = null, val customerId: String? = null, val kycFields: Map<String, String>? = null, val kycFiles: Map<String, ByteArray>? = null)

Request to initiate an interactive withdrawal flow with a Stellar anchor.

The anchor will return an interactive URL where the user can complete the withdrawal process through a web interface. After the user sends funds to the anchor's Stellar account, the anchor will deliver the withdrawn assets through the specified off-chain channel.

Constructors

Link copied to clipboard
constructor(assetCode: String, jwt: String, assetIssuer: String? = null, destinationAsset: String? = null, amount: String? = null, quoteId: String? = null, account: String? = null, memo: String? = null, memoType: String? = null, walletName: String? = null, walletUrl: String? = null, lang: String? = null, refundMemo: String? = null, refundMemoType: String? = null, customerId: String? = null, kycFields: Map<String, String>? = null, kycFiles: Map<String, ByteArray>? = null)

Properties

Link copied to clipboard

Stellar account (G...), muxed account (M...), or contract (C...) that will send the withdrawal. If omitted, the account from the SEP-10 JWT is used.

Link copied to clipboard

Amount the user intends to withdraw. The anchor may adjust this during the interactive flow.

Link copied to clipboard

Code of the Stellar asset to withdraw (e.g., "USDC", "native" for XLM). This is the asset the user will send from their Stellar account.

Link copied to clipboard

Issuer of the asset. Omit for native XLM. Required when multiple assets share the same code.

Link copied to clipboard

SEP-12 customer ID if KYC has already been completed. Allows the anchor to skip redundant KYC collection.

Link copied to clipboard

Off-chain asset the user will receive, in SEP-38 format (e.g., "iso4217:USD"). Used when the withdrawal involves a currency conversion.

Link copied to clipboard
val jwt: String

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

Link copied to clipboard

SEP-9 KYC field values as key-value pairs (field name to value). Allows pre-populating KYC information in the interactive flow.

Link copied to clipboard

SEP-9 KYC file uploads as key-value pairs (field name to file bytes). Used for documents like ID photos or proof of address.

Link copied to clipboard
val lang: String?

Language code (RFC 4646, e.g., "en", "en-US", "es") for the interactive UI and any returned messages.

Link copied to clipboard
val memo: String?

Deprecated: Use the sub value in the SEP-10 JWT instead. Previously used to identify the user when the Stellar account is shared.

Link copied to clipboard

Deprecated: Use the sub value in the SEP-10 JWT instead. Previously specified the memo type.

Link copied to clipboard

SEP-38 quote ID for firm pricing. When provided, the anchor must honor the quoted price for the withdrawal.

Link copied to clipboard

Memo to use if the anchor needs to refund the withdrawal. Helps route refund payments back to the correct user.

Link copied to clipboard

Type of the refund memo: "text", "id", or "hash".

Link copied to clipboard

Name of the wallet application, displayed to the user during the interactive flow.

Link copied to clipboard

URL of the wallet application for anchor reference.