Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateCommand

Exercise a choice on an existing contract.

Example:

 {
     commandType: 'create',
     templateId: {
         packageId: 'some-package-id',
         moduleName: 'SomeModule',
         entityName: 'SomeTemplate'
     },
     arguments: {
         fields: {
             owner: {
                 valueType: 'party',
                 party: 'Alice'
             }
         }
     }
 }

To express values in a more concise way, you can have a look at the ValueHelpers.

see

Identifier

see

Record

Hierarchy

  • CreateCommand

Index

Properties

arguments

arguments: Record

The arguments required for creating a contract from this template.

commandType

commandType: "create"

A fixed type tag that identifies this as a create command

templateId

templateId: Identifier

The template of contract the client wants to create.

Generated using TypeDoc