Skip to content
Documentation/canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2ServicesCommandServiceView on canton-network-docs
canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2ServicesCommandService

SubmitAndWait

Ledger APIProtobufcom.daml.ledger.api.v2SubmitAndWait

com.daml.ledger.api.v2

SubmitAndWait

gRPCSince 3.4.0
RPC/com.daml.ledger.api.v2.CommandService/SubmitAndWait

Protocol Details

Inputs

SubmitAndWaitRequest

commandsCommands

Outputs

SubmitAndWaitResponse

update_idstring
completion_offsetint64

Lifecycle Changes

3.4.0introduced

com.daml.ledger.api.v2.SubmitAndWaitRequest

commandsCommands

com.daml.ledger.api.v2.Commands

workflow_idstring
user_idstring
command_idstring
commandsrepeated Command
deduplication_durationDuration
deduplication_offsetint64
min_ledger_time_absTimestamp
min_ledger_time_relDuration
act_asrepeated string
read_asrepeated string
submission_idstring
disclosed_contractsrepeated DisclosedContract
synchronizer_idstring
package_id_selection_preferencerepeated string
prefetch_contract_keysrepeated PrefetchContractKey
taps_max_passesuint32

com.daml.ledger.api.v2.Command

createCreateCommand
exerciseExerciseCommand
exercise_by_keyExerciseByKeyCommand
create_and_exerciseCreateAndExerciseCommand

com.daml.ledger.api.v2.CreateCommand

template_idIdentifier
create_argumentsRecord

com.daml.ledger.api.v2.Identifier

package_idstring
module_namestring
entity_namestring

com.daml.ledger.api.v2.Record

record_idIdentifier
fieldsrepeated RecordField

com.daml.ledger.api.v2.RecordField

labelstring
valueValue

com.daml.ledger.api.v2.Value

unitEmpty
boolbool
int64sint64
dateint32
timestampsfixed64
numericstring
partystring
textstring
contract_idstring
optionalOptional
listList
text_mapTextMap
gen_mapGenMap
recordRecord
variantVariant
enumEnum

com.daml.ledger.api.v2.Optional

valueValue

com.daml.ledger.api.v2.List

elementsrepeated Value

com.daml.ledger.api.v2.TextMap

entriesrepeated Entry

com.daml.ledger.api.v2.TextMap.Entry

keystring
valueValue

com.daml.ledger.api.v2.GenMap

entriesrepeated Entry

com.daml.ledger.api.v2.GenMap.Entry

keyValue
valueValue

com.daml.ledger.api.v2.Variant

variant_idIdentifier
constructorstring
valueValue

com.daml.ledger.api.v2.Enum

enum_idIdentifier
constructorstring

com.daml.ledger.api.v2.ExerciseCommand

template_idIdentifier
contract_idstring
choicestring
choice_argumentValue

com.daml.ledger.api.v2.ExerciseByKeyCommand

template_idIdentifier
contract_keyValue
choicestring
choice_argumentValue

com.daml.ledger.api.v2.CreateAndExerciseCommand

template_idIdentifier
create_argumentsRecord
choicestring
choice_argumentValue

com.daml.ledger.api.v2.DisclosedContract

template_idIdentifier
contract_idstring
created_event_blobbytes
synchronizer_idstring

com.daml.ledger.api.v2.PrefetchContractKey

template_idIdentifier
contract_keyValue
limituint32

com.daml.ledger.api.v2.SubmitAndWaitResponse

update_idstring
completion_offsetint64
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.CommandService/SubmitAndWait <<'EOF'
{
  "commands": {
    "workflowId": "string",
    "userId": "string",
    "commandId": "string",
    "commands": [
      {
        "create": {
          "templateId": {},
          "createArguments": {}
        }
      }
    ],
    "deduplicationDuration": "string",
    "minLedgerTimeAbs": "string",
    "minLedgerTimeRel": "string"
  }
}
EOF
OKapplication/json
OK
{
  "updateId": "string",
  "completionOffset": "0"
}