terminateAndWaitForTerminated

Removes the wallet from Lightspark infrastructure. It won't be connected to the Lightning network anymore and its funds won't be accessible outside of the Funds Recovery Kit process.

This waits for the wallet to be either TERMINATEDor FAILED. It will periodically fire updates until then.

Return

The wallet updates until it is terminated.

Throws

if there is no valid authentication.