Skip to content
Documentation/canton-network-docs/Ledger APIgRPC APIPackagesv2ServicesCommandSubmissionServiceView on canton-network-docs
canton-network-docs/Ledger APIgRPC APIPackagesv2ServicesCommandSubmissionService

Submit

Ledger APIgRPC APIv2Submit

com.daml.ledger.api.v2

Submit

gRPCSince 3.4.4
RPC/com.daml.ledger.api.v2.CommandSubmissionService/Submit

Protocol Details

Inputs

SubmitRequest

commandsCommands

Outputs

SubmitResponse

Lifecycle Changes

3.4.4introduced

com.daml.ledger.api.v2.SubmitRequest

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.SubmitResponse

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