Check if the batch is empty.
Get the number of operations in the batch.
Build the UpdateCapTable command without executing it.
Validates that the payload is JSON-safe (no undefined values) before returning.
This catches converter bugs that would otherwise produce cryptic commands.0: Invalid input
errors from the Canton JSON API parameter validation.
The command and disclosed contracts for manual submission
Clear all operations from the batch.
Add a create operation to the batch.
The OCF entity type to create (e.g., 'stakeholder', 'stockClass')
The native OCF data for the entity
This for chaining
Add a delete operation to the batch.
The OCF entity type to delete
The OCF object ID to delete
This for chaining
Add an edit operation to the batch.
The OCF entity type to edit
The updated native OCF data (must include the entity's id)
This for chaining
Build and execute the batch update.
The result containing the update ID (transaction ID), updated cap table contract ID, and affected entity IDs
Get detailed per-item metadata for all operations in the batch.
Useful for error reporting and debugging - includes canonical object IDs, entity types, and key fields like security_id for issuance types.
Fluent builder for batch cap table updates.
Collects creates, edits, and deletes and builds them into a single UpdateCapTable command for atomic execution.