withdraw

suspend fun withdraw(assetId: StellarAssetId, authToken: AuthToken, extraFields: Map<String, String>? = null, withdrawalAccount: String? = null): InteractiveFlowResponse

Initiates interactive withdrawal using SEP-24.

Return

response object from the anchor

Parameters

withdrawalAccount

The Stellar or muxed account the client will use as the source of the withdrawal payment to 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