prepareEject

open suspend fun prepareEject(walletId: String, backupMethod: BackupMethods): String


open suspend fun prepareEject(walletId: String, backupMethod: BackupMethods, traceId: String?): String

Prepares the ejection of a wallet by obtaining the necessary share for the operation.

Return

A string representing the prepared share required for ejection.

Parameters

walletId

The unique identifier of the wallet.

backupMethod

The method used for backup before ejection.

traceId

Optional trace ID forwarded as the X-Portal-Trace-Id header. When null, a new UUID is generated for this request.

Throws

on a backend HTTP 400 response. Wrap the call in try/catch — the throw escapes uncaught.