deposit
Initiates an interactive deposit flow.
Returns a URL to display in a webview where the user can complete the deposit process. After the user finishes, the anchor will deposit funds to the specified Stellar account.
Return
Sep24InteractiveResponse with URL to display and transaction ID
Parameters
request
Deposit request parameters
Throws
If JWT is invalid or expired
On validation error
On anchor server error
Example:
val response = sep24.deposit(Sep24DepositRequest(
assetCode = "USDC",
jwt = jwtToken,
account = keyPair.getAccountId(),
amount = "100",
claimableBalanceSupported = true
))
println("Transaction ID: ${response.id}")
println("Interactive URL: ${response.url}")
// Display response.url in a webviewContent copied to clipboard