prepare Eject
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
wallet Id
The unique identifier of the wallet.
backup Method
The method used for backup before ejection.
trace Id
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.