PrepareSubmission
/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/PrepareSubmissionProtocol Details
Inputs
PrepareSubmissionRequest
user_idstringcommand_idstringcommandsrepeated Commandmin_ledger_timeMinLedgerTimemax_record_timeTimestampact_asrepeated stringread_asrepeated stringdisclosed_contractsrepeated DisclosedContractsynchronizer_idstringpackage_id_selection_preferencerepeated stringverbose_hashingboolprefetch_contract_keysrepeated PrefetchContractKeyestimate_traffic_costCostEstimationHintshashing_scheme_versionHashingSchemeVersiontaps_max_passesuint32Outputs
PrepareSubmissionResponse
prepared_transactionPreparedTransactionprepared_transaction_hashbyteshashing_scheme_versionHashingSchemeVersionhashing_detailsstringcost_estimationCostEstimationRelated Schemas
com.daml.ledger.api.v2.interactive.PrepareSubmissionRequest
com.daml.ledger.api.v2.interactive.PrepareSubmissionRequest
user_idstringcommand_idstringcommandsrepeated Commandmin_ledger_timeMinLedgerTimemax_record_timeTimestampact_asrepeated stringread_asrepeated stringdisclosed_contractsrepeated DisclosedContractsynchronizer_idstringpackage_id_selection_preferencerepeated stringverbose_hashingboolprefetch_contract_keysrepeated PrefetchContractKeyestimate_traffic_costCostEstimationHintshashing_scheme_versionHashingSchemeVersiontaps_max_passesuint32com.daml.ledger.api.v2.Command
com.daml.ledger.api.v2.Command
createCreateCommandexerciseExerciseCommandexercise_by_keyExerciseByKeyCommandcreate_and_exerciseCreateAndExerciseCommandcom.daml.ledger.api.v2.CreateCommand
com.daml.ledger.api.v2.CreateCommand
template_idIdentifiercreate_argumentsRecordcom.daml.ledger.api.v2.Identifier
com.daml.ledger.api.v2.Identifier
package_idstringmodule_namestringentity_namestringcom.daml.ledger.api.v2.Record
com.daml.ledger.api.v2.Record
record_idIdentifierfieldsrepeated RecordFieldcom.daml.ledger.api.v2.RecordField
com.daml.ledger.api.v2.RecordField
labelstringvalueValuecom.daml.ledger.api.v2.Value
com.daml.ledger.api.v2.Value
unitEmptyboolboolint64sint64dateint32timestampsfixed64numericstringpartystringtextstringcontract_idstringoptionalOptionallistListtext_mapTextMapgen_mapGenMaprecordRecordvariantVariantenumEnumcom.daml.ledger.api.v2.Optional
com.daml.ledger.api.v2.Optional
valueValuecom.daml.ledger.api.v2.List
com.daml.ledger.api.v2.List
elementsrepeated Valuecom.daml.ledger.api.v2.TextMap
com.daml.ledger.api.v2.TextMap
entriesrepeated Entrycom.daml.ledger.api.v2.TextMap.Entry
com.daml.ledger.api.v2.TextMap.Entry
keystringvalueValuecom.daml.ledger.api.v2.GenMap
com.daml.ledger.api.v2.GenMap
entriesrepeated Entrycom.daml.ledger.api.v2.GenMap.Entry
com.daml.ledger.api.v2.GenMap.Entry
keyValuevalueValuecom.daml.ledger.api.v2.Variant
com.daml.ledger.api.v2.Variant
variant_idIdentifierconstructorstringvalueValuecom.daml.ledger.api.v2.Enum
com.daml.ledger.api.v2.Enum
enum_idIdentifierconstructorstringcom.daml.ledger.api.v2.ExerciseCommand
com.daml.ledger.api.v2.ExerciseCommand
template_idIdentifiercontract_idstringchoicestringchoice_argumentValuecom.daml.ledger.api.v2.ExerciseByKeyCommand
com.daml.ledger.api.v2.ExerciseByKeyCommand
template_idIdentifiercontract_keyValuechoicestringchoice_argumentValuecom.daml.ledger.api.v2.CreateAndExerciseCommand
com.daml.ledger.api.v2.CreateAndExerciseCommand
template_idIdentifiercreate_argumentsRecordchoicestringchoice_argumentValuecom.daml.ledger.api.v2.interactive.MinLedgerTime
com.daml.ledger.api.v2.interactive.MinLedgerTime
min_ledger_time_absTimestampmin_ledger_time_relDurationcom.daml.ledger.api.v2.DisclosedContract
com.daml.ledger.api.v2.DisclosedContract
template_idIdentifiercontract_idstringcreated_event_blobbytessynchronizer_idstringcom.daml.ledger.api.v2.PrefetchContractKey
com.daml.ledger.api.v2.PrefetchContractKey
template_idIdentifiercontract_keyValuelimituint32com.daml.ledger.api.v2.interactive.CostEstimationHints
com.daml.ledger.api.v2.interactive.CostEstimationHints
disabledboolexpected_signaturesrepeated SigningAlgorithmSpeccom.daml.ledger.api.v2.SigningAlgorithmSpec
com.daml.ledger.api.v2.SigningAlgorithmSpec
SIGNING_ALGORITHM_SPEC_UNSPECIFIEDSIGNING_ALGORITHM_SPEC_ED25519SIGNING_ALGORITHM_SPEC_EC_DSA_SHA_256SIGNING_ALGORITHM_SPEC_EC_DSA_SHA_384
com.daml.ledger.api.v2.interactive.HashingSchemeVersion
com.daml.ledger.api.v2.interactive.HashingSchemeVersion
HASHING_SCHEME_VERSION_UNSPECIFIEDHASHING_SCHEME_VERSION_V2HASHING_SCHEME_VERSION_V3
com.daml.ledger.api.v2.interactive.PrepareSubmissionResponse
com.daml.ledger.api.v2.interactive.PrepareSubmissionResponse
prepared_transactionPreparedTransactionprepared_transaction_hashbyteshashing_scheme_versionHashingSchemeVersionhashing_detailsstringcost_estimationCostEstimationcom.daml.ledger.api.v2.interactive.PreparedTransaction
com.daml.ledger.api.v2.interactive.PreparedTransaction
transactionDamlTransactionmetadataMetadatacom.daml.ledger.api.v2.interactive.DamlTransaction
com.daml.ledger.api.v2.interactive.DamlTransaction
versionstringrootsrepeated stringnodesrepeated Nodenode_seedsrepeated NodeSeedcom.daml.ledger.api.v2.interactive.DamlTransaction.NodeSeed
com.daml.ledger.api.v2.interactive.DamlTransaction.NodeSeed
node_idint32seedbytescom.daml.ledger.api.v2.interactive.DamlTransaction.Node
com.daml.ledger.api.v2.interactive.DamlTransaction.Node
node_idstringv1Nodecom.daml.ledger.api.v2.interactive.transaction.v1.Node
com.daml.ledger.api.v2.interactive.transaction.v1.Node
createCreatefetchFetchexerciseExerciserollbackRollbackquery_by_keyQueryByKeycom.daml.ledger.api.v2.interactive.transaction.v1.Create
com.daml.ledger.api.v2.interactive.transaction.v1.Create
lf_versionstringcontract_idstringpackage_namestringtemplate_idIdentifierargumentValuesignatoriesrepeated stringstakeholdersrepeated stringkeyGlobalKeyWithMaintainerscom.daml.ledger.api.v2.interactive.GlobalKeyWithMaintainers
com.daml.ledger.api.v2.interactive.GlobalKeyWithMaintainers
keyGlobalKeymaintainersrepeated stringcom.daml.ledger.api.v2.interactive.GlobalKey
com.daml.ledger.api.v2.interactive.GlobalKey
template_idIdentifierpackage_namestringkeyValuehashbytescom.daml.ledger.api.v2.interactive.transaction.v1.Fetch
com.daml.ledger.api.v2.interactive.transaction.v1.Fetch
lf_versionstringcontract_idstringpackage_namestringtemplate_idIdentifiersignatoriesrepeated stringstakeholdersrepeated stringacting_partiesrepeated stringinterface_idIdentifierkeyGlobalKeyWithMaintainersby_keyboolcom.daml.ledger.api.v2.interactive.transaction.v1.Exercise
com.daml.ledger.api.v2.interactive.transaction.v1.Exercise
lf_versionstringcontract_idstringpackage_namestringtemplate_idIdentifiersignatoriesrepeated stringstakeholdersrepeated stringacting_partiesrepeated stringinterface_idIdentifierchoice_idstringchosen_valueValueconsumingboolchildrenrepeated stringexercise_resultValuechoice_observersrepeated stringkeyGlobalKeyWithMaintainersby_keyboolcom.daml.ledger.api.v2.interactive.transaction.v1.Rollback
com.daml.ledger.api.v2.interactive.transaction.v1.Rollback
childrenrepeated stringcom.daml.ledger.api.v2.interactive.transaction.v1.QueryByKey
com.daml.ledger.api.v2.interactive.transaction.v1.QueryByKey
lf_versionstringpackage_namestringtemplate_idIdentifierexhaustiveboolkeyGlobalKeyWithMaintainersresultrepeated stringcom.daml.ledger.api.v2.interactive.Metadata
com.daml.ledger.api.v2.interactive.Metadata
submitter_infoSubmitterInfosynchronizer_idstringmediator_groupuint32transaction_uuidstringpreparation_timeuint64input_contractsrepeated InputContractmin_ledger_effective_timeuint64max_ledger_effective_timeuint64max_record_timeuint64global_key_mappingrepeated GlobalKeyMappingEntrycom.daml.ledger.api.v2.interactive.Metadata.SubmitterInfo
com.daml.ledger.api.v2.interactive.Metadata.SubmitterInfo
act_asrepeated stringcommand_idstringcom.daml.ledger.api.v2.interactive.Metadata.GlobalKeyMappingEntry
com.daml.ledger.api.v2.interactive.Metadata.GlobalKeyMappingEntry
keyGlobalKeyvalueValuecom.daml.ledger.api.v2.interactive.Metadata.InputContract
com.daml.ledger.api.v2.interactive.Metadata.InputContract
v1Createcreated_atuint64event_blobbytescom.daml.ledger.api.v2.interactive.CostEstimation
com.daml.ledger.api.v2.interactive.CostEstimation
estimation_timestampTimestampconfirmation_request_traffic_cost_estimationuint64confirmation_response_traffic_cost_estimationuint64total_traffic_cost_estimationuint64# Add -plaintext if the server is not using TLS.
grpcurl \
-d @ \
<HOST:PORT> \
com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/PrepareSubmission <<'EOF'
{
"userId": "string",
"commandId": "string",
"commands": [
{
"create": {
"templateId": {
"packageId": "string",
"moduleName": "string",
"entityName": "string"
},
"createArguments": {
"recordId": {},
"fields": [
{}
]
}
}
}
],
"minLedgerTime": {
"minLedgerTimeAbs": "string"
},
"maxRecordTime": "string",
"actAs": [
"string"
],
"readAs": [
"string"
],
"disclosedContracts": [
{
"templateId": {
"packageId": "string",
"moduleName": "string",
"entityName": "string"
},
"contractId": "string",
"createdEventBlob": "BASE64_ENCODED_BYTES",
"synchronizerId": "string"
}
]
}
EOF
{
"preparedTransaction": {
"transaction": {
"version": "string",
"roots": [
"string"
],
"nodes": [
{
"nodeId": "string",
"v1": {}
}
],
"nodeSeeds": [
{
"nodeId": 0,
"seed": "BASE64_ENCODED_BYTES"
}
]
},
"metadata": {
"submitterInfo": {
"actAs": [
"string"
],
"commandId": "string"
},
"synchronizerId": "string",
"mediatorGroup": 0,
"transactionUuid": "string",
"preparationTime": "0",
"inputContracts": [
{
"v1": {},
"createdAt": "0",
"eventBlob": "BASE64_ENCODED_BYTES"
}
],
"minLedgerEffectiveTime": "0",
"maxLedgerEffectiveTime": "0"
}
},
"preparedTransactionHash": "BASE64_ENCODED_BYTES",
"hashingSchemeVersion": "HASHING_SCHEME_VERSION_UNSPECIFIED",
"hashingDetails": "string",
"costEstimation": {
"estimationTimestamp": "string",
"confirmationRequestTrafficCostEstimation": "0",
"confirmationResponseTrafficCostEstimation": "0",
"totalTrafficCostEstimation": "0"
}
}