signAndExecuteAndWait

suspend fun signAndExecuteAndWait(prepared: InteractiveSubmissionServiceOuterClass.PrepareSubmissionResponse, driver: SigningDriver, partyId: String, keyFingerprint: String, userId: String? = null, submissionId: String = UUID.randomUUID().toString(), verifyHash: Boolean = true): SubmissionCompletion

signAndExecute, then waits for the command's completion event — the only way to learn the outcome of an interactive submission, since ExecuteSubmission acknowledges acceptance, not commitment.

The ledger end is recorded before executing and the completion stream replays from there, so the completion cannot be missed; it is matched by userId + submissionId. On success returns the completion's update id and offset; if the ledger rejected the command (contention, time bounds), throws CantonException carrying the typed CantonError decoded from the completion's google.rpc.Status details.

Suspends until the participant emits the completion; wrap in withTimeout to bound the wait.