CommandSubmission

data class CommandSubmission(val commands: List<CommandsOuterClass.Command>, val actAs: List<String>, val readAs: List<String> = emptyList(), val userId: String = "", val commandId: String = UUID.randomUUID().toString(), val workflowId: String = "", val deduplicationDuration: Duration? = null, val synchronizerId: String = "")

A batch of commands to submit atomically to the ledger.

commandId defaults to a fresh UUID and stays stable for the lifetime of this instance — the SDK's retries reuse it, so the participant's command deduplication prevents double execution. Reuse one CommandSubmission per logical action; build a new one for a genuinely new action.

Constructors

Link copied to clipboard
constructor(commands: List<CommandsOuterClass.Command>, actAs: List<String>, readAs: List<String> = emptyList(), userId: String = "", commandId: String = UUID.randomUUID().toString(), workflowId: String = "", deduplicationDuration: Duration? = null, synchronizerId: String = "")

Properties

Link copied to clipboard

Parties on whose behalf the commands are executed.

Link copied to clipboard

Unique id for deduplication; keep stable across retries of the same action.

Link copied to clipboard
val commands: List<CommandsOuterClass.Command>

The commands to execute atomically, in order.

Link copied to clipboard

How far back the participant rejects duplicate commandIds; participant maximum if null.

Link copied to clipboard

Additional parties whose contracts may be read during interpretation.

Link copied to clipboard

Pin execution to a synchronizer; participant chooses if empty.

Link copied to clipboard

The ledger user submitting the request; must match the JWT's user on authenticated ledgers.

Link copied to clipboard