deposit

suspend fun deposit(assetId: StellarAssetId, authToken: AuthToken, extraFields: Map<String, String>? = null, destinationAccount: String? = null, destinationMemo: Pair<String, MemoType>? = null): InteractiveFlowResponse

Initiates interactive deposit using SEP-24.

Return

response object from the anchor

Parameters

destinationAccount

The Stellar or muxed account the client wants to use as the destination of the payment sent by the anchor. Defaults to the account authenticated via SEP-10 if not specified.

assetId

Stellar asset to deposit or withdraw

authToken

Auth token from the anchor (account's authentication using SEP-10)

extraFields

Additional information to pass to the anchor

Throws