The name of the choice the client wants to exercise.
The argument for this choice.
A fixed type tag that identifies this as a create-and-exercise command
The arguments required for creating a contract from this template.
The template of the contract the client wants to create
Generated using TypeDoc
Create a contract and exercise a choice on it in the same transaction.
Example:
{ commandType: 'create', templateId: { packageId: 'some-package-id', moduleName: 'SomeModule', entityName: 'SomeTemplate' }, createArguments: { fields: { owner: { valueType: 'party', party: 'Alice' } } }, choice: 'Issue', choiceArgument: { valueType: 'record', fields: { quantity: { valueType: 'int64', int64: '100' }, price: { valueType: 'decimal', decimal: '42' } } } }
To express values in a more concise way, you can have a look at the ValueHelpers.
Identifier
Record
Value