Skip to content
Documentation/canton-network-docs/Ledger APIgRPC APIPackagesv2.interactiveServicesInteractiveSubmissionServiceView on canton-network-docs
canton-network-docs/Ledger APIgRPC APIPackagesv2.interactiveServicesInteractiveSubmissionService

ExecuteSubmissionAndWaitForTransaction

Ledger APIgRPC APIv2.interactiveExecuteSubmissionAndWaitForTransaction

com.daml.ledger.api.v2.interactive

ExecuteSubmissionAndWaitForTransaction

gRPCSince 3.4.4
RPC/com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/ExecuteSubmissionAndWaitForTransaction

Protocol Details

Inputs

ExecuteSubmissionAndWaitForTransactionRequest

prepared_transactionPreparedTransaction
party_signaturesPartySignatures
deduplication_durationDuration
deduplication_offsetint64
submission_idstring
user_idstring
hashing_scheme_versionHashingSchemeVersion
min_ledger_timeMinLedgerTime
transaction_formatTransactionFormat

Outputs

ExecuteSubmissionAndWaitForTransactionResponse

transactionTransaction

Lifecycle Changes

3.4.4introduced

com.daml.ledger.api.v2.interactive.ExecuteSubmissionAndWaitForTransactionRequest

prepared_transactionPreparedTransaction
party_signaturesPartySignatures
deduplication_durationDuration
deduplication_offsetint64
submission_idstring
user_idstring
hashing_scheme_versionHashingSchemeVersion
min_ledger_timeMinLedgerTime
transaction_formatTransactionFormat

com.daml.ledger.api.v2.interactive.PreparedTransaction

transactionDamlTransaction
metadataMetadata

com.daml.ledger.api.v2.interactive.DamlTransaction

versionstring
rootsrepeated string
nodesrepeated Node
node_seedsrepeated NodeSeed

com.daml.ledger.api.v2.interactive.DamlTransaction.NodeSeed

node_idint32
seedbytes

com.daml.ledger.api.v2.interactive.DamlTransaction.Node

node_idstring
v1Node

com.daml.ledger.api.v2.interactive.transaction.v1.Node

createCreate
fetchFetch
exerciseExercise
rollbackRollback
query_by_keyQueryByKey

com.daml.ledger.api.v2.interactive.transaction.v1.Create

lf_versionstring
contract_idstring
package_namestring
template_idIdentifier
argumentValue
signatoriesrepeated string
stakeholdersrepeated string
keyGlobalKeyWithMaintainers

com.daml.ledger.api.v2.Identifier

package_idstring
module_namestring
entity_namestring

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

record_idIdentifier
fieldsrepeated RecordField

com.daml.ledger.api.v2.RecordField

labelstring
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.interactive.GlobalKeyWithMaintainers

keyGlobalKey
maintainersrepeated string

com.daml.ledger.api.v2.interactive.GlobalKey

template_idIdentifier
package_namestring
keyValue
hashbytes

com.daml.ledger.api.v2.interactive.transaction.v1.Fetch

lf_versionstring
contract_idstring
package_namestring
template_idIdentifier
signatoriesrepeated string
stakeholdersrepeated string
acting_partiesrepeated string
interface_idIdentifier
keyGlobalKeyWithMaintainers
by_keybool

com.daml.ledger.api.v2.interactive.transaction.v1.Exercise

lf_versionstring
contract_idstring
package_namestring
template_idIdentifier
signatoriesrepeated string
stakeholdersrepeated string
acting_partiesrepeated string
interface_idIdentifier
choice_idstring
chosen_valueValue
consumingbool
childrenrepeated string
exercise_resultValue
choice_observersrepeated string
keyGlobalKeyWithMaintainers
by_keybool

com.daml.ledger.api.v2.interactive.transaction.v1.Rollback

childrenrepeated string

com.daml.ledger.api.v2.interactive.transaction.v1.QueryByKey

lf_versionstring
package_namestring
template_idIdentifier
exhaustivebool
keyGlobalKeyWithMaintainers
resultrepeated string

com.daml.ledger.api.v2.interactive.Metadata

submitter_infoSubmitterInfo
synchronizer_idstring
mediator_groupuint32
transaction_uuidstring
preparation_timeuint64
input_contractsrepeated InputContract
min_ledger_effective_timeuint64
max_ledger_effective_timeuint64
max_record_timeuint64
global_key_mappingrepeated GlobalKeyMappingEntry

com.daml.ledger.api.v2.interactive.Metadata.SubmitterInfo

act_asrepeated string
command_idstring

com.daml.ledger.api.v2.interactive.Metadata.GlobalKeyMappingEntry

keyGlobalKey
valueValue

com.daml.ledger.api.v2.interactive.Metadata.InputContract

v1Create
created_atuint64
event_blobbytes

com.daml.ledger.api.v2.interactive.PartySignatures

signaturesrepeated SinglePartySignatures

com.daml.ledger.api.v2.interactive.SinglePartySignatures

partystring
signaturesrepeated Signature

com.daml.ledger.api.v2.Signature

formatSignatureFormat
signaturebytes
signed_bystring
signing_algorithm_specSigningAlgorithmSpec

com.daml.ledger.api.v2.SignatureFormat

  • SIGNATURE_FORMAT_UNSPECIFIED
  • SIGNATURE_FORMAT_RAW
  • SIGNATURE_FORMAT_DER
  • SIGNATURE_FORMAT_CONCAT
  • SIGNATURE_FORMAT_SYMBOLIC

com.daml.ledger.api.v2.SigningAlgorithmSpec

  • SIGNING_ALGORITHM_SPEC_UNSPECIFIED
  • SIGNING_ALGORITHM_SPEC_ED25519
  • SIGNING_ALGORITHM_SPEC_EC_DSA_SHA_256
  • SIGNING_ALGORITHM_SPEC_EC_DSA_SHA_384

com.daml.ledger.api.v2.interactive.HashingSchemeVersion

  • HASHING_SCHEME_VERSION_UNSPECIFIED
  • HASHING_SCHEME_VERSION_V2
  • HASHING_SCHEME_VERSION_V3

com.daml.ledger.api.v2.interactive.MinLedgerTime

min_ledger_time_absTimestamp
min_ledger_time_relDuration

com.daml.ledger.api.v2.TransactionFormat

event_formatEventFormat
transaction_shapeTransactionShape

com.daml.ledger.api.v2.EventFormat

filters_by_partyrepeated map
filters_for_any_partyFilters
verbosebool

com.daml.ledger.api.v2.Filters

cumulativerepeated CumulativeFilter

com.daml.ledger.api.v2.CumulativeFilter

wildcard_filterWildcardFilter
interface_filterInterfaceFilter
template_filterTemplateFilter

com.daml.ledger.api.v2.WildcardFilter

include_created_event_blobbool

com.daml.ledger.api.v2.InterfaceFilter

interface_idIdentifier
include_interface_viewbool
include_created_event_blobbool

com.daml.ledger.api.v2.TemplateFilter

template_idIdentifier
include_created_event_blobbool

com.daml.ledger.api.v2.TransactionShape

  • TRANSACTION_SHAPE_UNSPECIFIED
  • TRANSACTION_SHAPE_ACS_DELTA
  • TRANSACTION_SHAPE_LEDGER_EFFECTS

com.daml.ledger.api.v2.interactive.ExecuteSubmissionAndWaitForTransactionResponse

transactionTransaction

com.daml.ledger.api.v2.Transaction

update_idstring
command_idstring
workflow_idstring
effective_atTimestamp
eventsrepeated Event
offsetint64
synchronizer_idstring
trace_contextTraceContext
record_timeTimestamp
external_transaction_hashbytes
paid_traffic_costint64

com.daml.ledger.api.v2.Event

createdCreatedEvent
archivedArchivedEvent
exercisedExercisedEvent

com.daml.ledger.api.v2.CreatedEvent

offsetint64
node_idint32
contract_idstring
template_idIdentifier
contract_keyValue
contract_key_hashbytes
create_argumentsRecord
created_event_blobbytes
interface_viewsrepeated InterfaceView
witness_partiesrepeated string
signatoriesrepeated string
observersrepeated string
created_atTimestamp
package_namestring
acs_deltabool
representative_package_idstring

com.daml.ledger.api.v2.InterfaceView

interface_idIdentifier
view_statusStatus
view_valueRecord
implementation_package_idstring

com.daml.ledger.api.v2.ArchivedEvent

offsetint64
node_idint32
contract_idstring
template_idIdentifier
witness_partiesrepeated string
package_namestring
implemented_interfacesrepeated Identifier

com.daml.ledger.api.v2.ExercisedEvent

offsetint64
node_idint32
contract_idstring
template_idIdentifier
interface_idIdentifier
choicestring
choice_argumentValue
acting_partiesrepeated string
consumingbool
witness_partiesrepeated string
last_descendant_node_idint32
exercise_resultValue
package_namestring
implemented_interfacesrepeated Identifier
acs_deltabool

com.daml.ledger.api.v2.TraceContext

traceparentstring
tracestatestring
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.interactive.InteractiveSubmissionService/ExecuteSubmissionAndWaitForTransaction <<'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"
    }
  },
  "partySignatures": {
    "signatures": [
      {
        "party": "string",
        "signatures": [
          {
            "format": "SIGNATURE_FORMAT_UNSPECIFIED",
            "signature": "BASE64_ENCODED_BYTES",
            "signedBy": "string",
            "signingAlgorithmSpec": "SIGNING_ALGORITHM_SPEC_UNSPECIFIED"
          }
        ]
      }
    ]
  },
  "deduplicationDuration": "string",
  "submissionId": "string",
  "userId": "string",
  "hashingSchemeVersion": "HASHING_SCHEME_VERSION_UNSPECIFIED",
  "minLedgerTime": {
    "minLedgerTimeAbs": "string"
  }
}
EOF
OKapplication/json
OK
{
  "transaction": {
    "updateId": "string",
    "commandId": "string",
    "workflowId": "string",
    "effectiveAt": "string",
    "events": [
      {
        "created": {
          "offset": "0",
          "nodeId": 0,
          "contractId": "string",
          "templateId": {},
          "contractKey": {},
          "contractKeyHash": "BASE64_ENCODED_BYTES",
          "createArguments": {},
          "createdEventBlob": "BASE64_ENCODED_BYTES"
        }
      }
    ],
    "offset": "0",
    "synchronizerId": "string",
    "traceContext": {
      "traceparent": "string",
      "tracestate": "string"
    }
  }
}