withdraw
suspend fun withdraw(assetId: StellarAssetId, authToken: AuthToken, extraFields: Map<String, String>? = null, withdrawalAccount: String? = null): InteractiveFlowResponse
Content copied to clipboard
Initiates interactive withdrawal using SEP-24.
Return
response object from the anchor
Parameters
withdrawal Account
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.
asset Id
Stellar asset to deposit or withdraw
auth Token
Auth token from the anchor (account's authentication using SEP-10)
extra Fields
Additional information to pass to the anchor
Throws
if asset was refused by the anchor