Sep06DepositExchangeRequest

data class Sep06DepositExchangeRequest(val destinationAsset: String, val sourceAsset: String, val amount: String, val account: String, val jwt: String, val quoteId: String? = null, val memoType: String? = null, val memo: String? = null, val emailAddress: String? = null, val type: String? = null, val fundingMethod: String? = null, val countryCode: String? = null, val claimableBalanceSupported: Boolean? = 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 deposit with asset conversion (SEP-38 exchange).

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

Constructors

Link copied to clipboard
constructor(destinationAsset: String, sourceAsset: String, amount: String, account: String, jwt: String, quoteId: String? = null, memoType: String? = null, memo: String? = null, emailAddress: String? = null, type: String? = null, fundingMethod: String? = null, countryCode: String? = null, claimableBalanceSupported: Boolean? = 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 (G...), muxed account (M...), or contract (C...) that will receive the deposited funds.

Link copied to clipboard

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

Link copied to clipboard

Set to true if the client supports receiving funds via claimable balances.

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

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

Link copied to clipboard

Email address of the depositor for status updates.

Link copied to clipboard

Additional fields required by the anchor.

Link copied to clipboard

Method of funding the deposit (replaces deprecated type field).

Link copied to clipboard
val jwt: String

SEP-10 JWT token for authentication. Required for all deposit 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 drop-off.

Link copied to clipboard
val memo: String?

Value of memo to attach to the transaction. For hash type, this should be base64-encoded.

Link copied to clipboard

Type of memo the anchor should attach to the Stellar payment transaction: "text", "id", or "hash".

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 deposit is completed before the quote expires.

Link copied to clipboard

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

Link copied to clipboard
val type: String?

Deprecated: Use fundingMethod instead. Type of deposit method.

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.