prepare

suspend fun prepare(commands: List<CommandsOuterClass.Command>, actAs: String, synchronizerId: String, userId: String? = null, commandId: String = UUID.randomUUID().toString(), disclosedContracts: List<CommandsOuterClass.DisclosedContract> = emptyList()): InteractiveSubmissionServiceOuterClass.PrepareSubmissionResponse

Step one of the flow: asks the participant to prepare commands for actAs on synchronizerId and returns the raw PreparedTransaction plus its hash, ready for signAndExecute. Verbose hashing is off, so the response carries no hashing trace.

commandId defaults to a fresh UUID; disclosedContracts are forwarded unchanged. userId is the ledger user submitting, when the participant requires one.