An event in the flat transaction stream can either be the creation
or the archiving of a contract.
In the transaction service the events are restricted to the events
visible for the parties specified in the transaction filter. Each
event message type below contains a witnessParties field which
indicates the subset of the requested parties that can see the event
in question. In the flat transaction stream you'll only receive
events that have witnesses.
Uses the eventType string type tag to differentiate between types in the union.
Each tree event message type below contains a witnessParties field which
indicates the subset of the requested parties that can see the event
in question.
Note that transaction trees might contain events with
no witness parties, which were included simply because they were
children of events which have witnesses.
Encodes values that the ledger accepts as command arguments and emits as contract arguments.
Uses the valueType string type tag to differentiate between types in the union.
To express values in a more concise way, you can have a look at the ValueHelpers.
Variables
ActiveContractsServiceService
ActiveContractsServiceService:{ getActiveContracts: object } = exports['com.daml.ledger.api.v1.ActiveContractsService'] = {// Returns a stream of the latest snapshot of active contracts.// If there are no active contracts, the stream returns a single GetActiveContractsResponse message with the offset at which the snapshot has been taken.// Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the transaction service.// Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.getActiveContracts: {path: '/com.daml.ledger.api.v1.ActiveContractsService/GetActiveContracts',requestStream: false,responseStream: true,requestType: com_daml_ledger_api_v1_active_contracts_service_pb.GetActiveContractsRequest,responseType: com_daml_ledger_api_v1_active_contracts_service_pb.GetActiveContractsResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetActiveContractsRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetActiveContractsRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetActiveContractsResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetActiveContractsResponse,},}
CommandServiceService:{ submitAndWait: object; submitAndWaitForTransaction: object; submitAndWaitForTransactionId: object; submitAndWaitForTransactionTree: object } = exports['com.daml.ledger.api.v1.CommandService'] = {// Submits a single composite command and waits for its result.// Returns ``RESOURCE_EXHAUSTED`` if the number of in-flight commands reached the maximum (if a limit is configured).// Propagates the gRPC error of failed submissions including DAML interpretation errors.submitAndWait: {path: '/com.daml.ledger.api.v1.CommandService/SubmitAndWait',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_command_service_pb.SubmitAndWaitRequest,responseType: google_protobuf_empty_pb.Empty,requestSerialize: serialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,responseSerialize: serialize_google_protobuf_Empty,responseDeserialize: deserialize_google_protobuf_Empty,},// Submits a single composite command, waits for its result, and returns the transaction id.// Returns ``RESOURCE_EXHAUSTED`` if the number of in-flight commands reached the maximum (if a limit is configured).// Propagates the gRPC error of failed submissions including DAML interpretation errors.submitAndWaitForTransactionId: {path: '/com.daml.ledger.api.v1.CommandService/SubmitAndWaitForTransactionId',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_command_service_pb.SubmitAndWaitRequest,responseType: com_daml_ledger_api_v1_command_service_pb.SubmitAndWaitForTransactionIdResponse,requestSerialize: serialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,responseSerialize: serialize_com_daml_ledger_api_v1_SubmitAndWaitForTransactionIdResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_SubmitAndWaitForTransactionIdResponse,},// Submits a single composite command, waits for its result, and returns the transaction.// Returns ``RESOURCE_EXHAUSTED`` if the number of in-flight commands reached the maximum (if a limit is configured).// Propagates the gRPC error of failed submissions including DAML interpretation errors.submitAndWaitForTransaction: {path: '/com.daml.ledger.api.v1.CommandService/SubmitAndWaitForTransaction',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_command_service_pb.SubmitAndWaitRequest,responseType: com_daml_ledger_api_v1_command_service_pb.SubmitAndWaitForTransactionResponse,requestSerialize: serialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,responseSerialize: serialize_com_daml_ledger_api_v1_SubmitAndWaitForTransactionResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_SubmitAndWaitForTransactionResponse,},// Submits a single composite command, waits for its result, and returns the transaction tree.// Returns ``RESOURCE_EXHAUSTED`` if the number of in-flight commands reached the maximum (if a limit is configured).// Propagates the gRPC error of failed submissions including DAML interpretation errors.submitAndWaitForTransactionTree: {path: '/com.daml.ledger.api.v1.CommandService/SubmitAndWaitForTransactionTree',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_command_service_pb.SubmitAndWaitRequest,responseType: com_daml_ledger_api_v1_command_service_pb.SubmitAndWaitForTransactionTreeResponse,requestSerialize: serialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_SubmitAndWaitRequest,responseSerialize: serialize_com_daml_ledger_api_v1_SubmitAndWaitForTransactionTreeResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_SubmitAndWaitForTransactionTreeResponse,},}
ConfigManagementServiceService:{ getTimeModel: object; setTimeModel: object } = exports['com.daml.ledger.api.v1.admin.ConfigManagementService'] = {// Return the currently active time model and the current configuration generation.getTimeModel: {path: '/com.daml.ledger.api.v1.admin.ConfigManagementService/GetTimeModel',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_config_management_service_pb.GetTimeModelRequest,responseType: com_daml_ledger_api_v1_admin_config_management_service_pb.GetTimeModelResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_GetTimeModelRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_GetTimeModelRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_GetTimeModelResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_GetTimeModelResponse,},// Set the ledger time model.// In case of failure this method responds with:// - INVALID_ARGUMENT if arguments are invalid, or the provided configuration generation// does not match the current active configuration generation. The caller is expected// to retry by again fetching current time model using 'GetTimeModel', applying changes// and resubmitting.// - ABORTED if the request is rejected or times out. Note that a timed out request may// have still been committed to the ledger. Application should re-query the current// time model before retrying.// - UNIMPLEMENTED if this method is not supported by the backing ledger.setTimeModel: {path: '/com.daml.ledger.api.v1.admin.ConfigManagementService/SetTimeModel',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_config_management_service_pb.SetTimeModelRequest,responseType: com_daml_ledger_api_v1_admin_config_management_service_pb.SetTimeModelResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_SetTimeModelRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_SetTimeModelRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_SetTimeModelResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_SetTimeModelResponse,},}
HealthService:{ check: object; watch: object } = exports['grpc.health.v1.Health'] = {// If the requested service is unknown, the call will fail with status// NOT_FOUND.check: {path: '/grpc.health.v1.Health/Check',requestStream: false,responseStream: false,requestType: grpc_health_v1_health_pb.HealthCheckRequest,responseType: grpc_health_v1_health_pb.HealthCheckResponse,requestSerialize: serialize_grpc_health_v1_HealthCheckRequest,requestDeserialize: deserialize_grpc_health_v1_HealthCheckRequest,responseSerialize: serialize_grpc_health_v1_HealthCheckResponse,responseDeserialize: deserialize_grpc_health_v1_HealthCheckResponse,},// Performs a watch for the serving status of the requested service.// The server will immediately send back a message indicating the current// serving status. It will then subsequently send a new message whenever// the service's serving status changes.//// If the requested service is unknown when the call is received, the// server will send a message setting the serving status to// SERVICE_UNKNOWN but will *not* terminate the call. If at some// future point, the serving status of the service becomes known, the// server will send a new message with the service's serving status.//// If the call terminates with status UNIMPLEMENTED, then clients// should assume this method is not supported and should not retry the// call. If the call terminates with any other status (including OK),// clients should retry the call with appropriate exponential backoff.watch: {path: '/grpc.health.v1.Health/Watch',requestStream: false,responseStream: true,requestType: grpc_health_v1_health_pb.HealthCheckRequest,responseType: grpc_health_v1_health_pb.HealthCheckResponse,requestSerialize: serialize_grpc_health_v1_HealthCheckRequest,requestDeserialize: deserialize_grpc_health_v1_HealthCheckRequest,responseSerialize: serialize_grpc_health_v1_HealthCheckResponse,responseDeserialize: deserialize_grpc_health_v1_HealthCheckResponse,},}
LedgerConfigurationServiceService:{ getLedgerConfiguration: object } = exports['com.daml.ledger.api.v1.LedgerConfigurationService'] = {// Returns the latest configuration as the first response, and publishes configuration updates in the same stream.getLedgerConfiguration: {path: '/com.daml.ledger.api.v1.LedgerConfigurationService/GetLedgerConfiguration',requestStream: false,responseStream: true,requestType: com_daml_ledger_api_v1_ledger_configuration_service_pb.GetLedgerConfigurationRequest,responseType: com_daml_ledger_api_v1_ledger_configuration_service_pb.GetLedgerConfigurationResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetLedgerConfigurationRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetLedgerConfigurationRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetLedgerConfigurationResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetLedgerConfigurationResponse,},}
LedgerIdentityServiceService:{ getLedgerIdentity: object } = exports['com.daml.ledger.api.v1.LedgerIdentityService'] = {// Clients may call this RPC to return the identifier of the ledger they are connected to.getLedgerIdentity: {path: '/com.daml.ledger.api.v1.LedgerIdentityService/GetLedgerIdentity',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_ledger_identity_service_pb.GetLedgerIdentityRequest,responseType: com_daml_ledger_api_v1_ledger_identity_service_pb.GetLedgerIdentityResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetLedgerIdentityRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetLedgerIdentityRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetLedgerIdentityResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetLedgerIdentityResponse,},}
PackageManagementServiceService:{ listKnownPackages: object; uploadDarFile: object } = exports['com.daml.ledger.api.v1.admin.PackageManagementService'] = {// Returns the details of all DAML-LF packages known to the backing// participant.// This request will always succeed.listKnownPackages: {path: '/com.daml.ledger.api.v1.admin.PackageManagementService/ListKnownPackages',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_package_management_service_pb.ListKnownPackagesRequest,responseType: com_daml_ledger_api_v1_admin_package_management_service_pb.ListKnownPackagesResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_ListKnownPackagesRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_ListKnownPackagesRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_ListKnownPackagesResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_ListKnownPackagesResponse,},// Upload a DAR file to the backing participant.// Depending on the ledger implementation this might also make the package// available on the whole ledger. This call might not be supported by some// ledger implementations. Canton could be an example, where uploading a DAR// is not sufficient to render it usable, it must be activated first.// This call may:// - Succeed, if the package was successfully uploaded, or if the same package// was already uploaded before.// - Respond with UNIMPLEMENTED, if DAR package uploading is not supported by// the backing participant.// - Respond with INVALID_ARGUMENT, if the DAR file is too big or malformed.// The maximum supported size is implementation specific.uploadDarFile: {path: '/com.daml.ledger.api.v1.admin.PackageManagementService/UploadDarFile',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_package_management_service_pb.UploadDarFileRequest,responseType: com_daml_ledger_api_v1_admin_package_management_service_pb.UploadDarFileResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_UploadDarFileRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_UploadDarFileRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_UploadDarFileResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_UploadDarFileResponse,},}
PackageServiceService:{ getPackage: object; getPackageStatus: object; listPackages: object } = exports['com.daml.ledger.api.v1.PackageService'] = {// Returns the identifiers of all supported packages.listPackages: {path: '/com.daml.ledger.api.v1.PackageService/ListPackages',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_package_service_pb.ListPackagesRequest,responseType: com_daml_ledger_api_v1_package_service_pb.ListPackagesResponse,requestSerialize: serialize_com_daml_ledger_api_v1_ListPackagesRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_ListPackagesRequest,responseSerialize: serialize_com_daml_ledger_api_v1_ListPackagesResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_ListPackagesResponse,},// Returns the contents of a single package, or a ``NOT_FOUND`` error if the requested package is unknown.getPackage: {path: '/com.daml.ledger.api.v1.PackageService/GetPackage',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_package_service_pb.GetPackageRequest,responseType: com_daml_ledger_api_v1_package_service_pb.GetPackageResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetPackageRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetPackageRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetPackageResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetPackageResponse,},// Returns the status of a single package.getPackageStatus: {path: '/com.daml.ledger.api.v1.PackageService/GetPackageStatus',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_package_service_pb.GetPackageStatusRequest,responseType: com_daml_ledger_api_v1_package_service_pb.GetPackageStatusResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetPackageStatusRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetPackageStatusRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetPackageStatusResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetPackageStatusResponse,},}
PartyManagementServiceService:{ allocateParty: object; getParticipantId: object; getParties: object; listKnownParties: object } = exports['com.daml.ledger.api.v1.admin.PartyManagementService'] = {// Return the identifier of the backing participant.// All horizontally scaled replicas should return the same id.// This method is expected to succeed provided the backing participant is// healthy, otherwise it responds with INTERNAL grpc error.// daml-on-sql: returns an identifier supplied on command line at launch time// daml-on-kv-ledger: as above// canton: returns globally unique identifier of the backing participantgetParticipantId: {path: '/com.daml.ledger.api.v1.admin.PartyManagementService/GetParticipantId',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_party_management_service_pb.GetParticipantIdRequest,responseType: com_daml_ledger_api_v1_admin_party_management_service_pb.GetParticipantIdResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_GetParticipantIdRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_GetParticipantIdRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_GetParticipantIdResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_GetParticipantIdResponse,},// Get the party details of the given parties. Only known parties will be// returned in the list.// This request will always succeed.getParties: {path: '/com.daml.ledger.api.v1.admin.PartyManagementService/GetParties',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_party_management_service_pb.GetPartiesRequest,responseType: com_daml_ledger_api_v1_admin_party_management_service_pb.GetPartiesResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_GetPartiesRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_GetPartiesRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_GetPartiesResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_GetPartiesResponse,},// List the parties known by the backing participant.// The list returned contains parties whose ledger access is facilitated by// backing participant and the ones maintained elsewhere.// This request will always succeed.listKnownParties: {path: '/com.daml.ledger.api.v1.admin.PartyManagementService/ListKnownParties',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_party_management_service_pb.ListKnownPartiesRequest,responseType: com_daml_ledger_api_v1_admin_party_management_service_pb.ListKnownPartiesResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_ListKnownPartiesRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_ListKnownPartiesRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_ListKnownPartiesResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_ListKnownPartiesResponse,},// Adds a new party to the set managed by the backing participant.// Caller specifies a party identifier suggestion, the actual identifier// allocated might be different and is implementation specific.// This call may:// - Succeed, in which case the actual allocated identifier is visible in// the response.// - Respond with UNIMPLEMENTED if synchronous party allocation is not// supported by the backing participant.// - Respond with INVALID_ARGUMENT if the provided hint and/or display name// is invalid on the given ledger (see below).// daml-on-sql: suggestion's uniqueness is checked and call rejected if the// identifier is already present// daml-on-kv-ledger: suggestion's uniqueness is checked by the validators in// the consensus layer and call rejected if the identifier is already present.// canton: completely different globally unique identifier is allocated.// Behind the scenes calls to an internal protocol are made. As that protocol// is richer than the the surface protocol, the arguments take implicit valuesallocateParty: {path: '/com.daml.ledger.api.v1.admin.PartyManagementService/AllocateParty',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_admin_party_management_service_pb.AllocatePartyRequest,responseType: com_daml_ledger_api_v1_admin_party_management_service_pb.AllocatePartyResponse,requestSerialize: serialize_com_daml_ledger_api_v1_admin_AllocatePartyRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_admin_AllocatePartyRequest,responseSerialize: serialize_com_daml_ledger_api_v1_admin_AllocatePartyResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_admin_AllocatePartyResponse,},}
ResetServiceService:{ reset: object } = exports['com.daml.ledger.api.v1.testing.ResetService'] = {// Resets the ledger state. Note that loaded DARs won't be removed -- this only rolls back the// ledger to genesis.reset: {path: '/com.daml.ledger.api.v1.testing.ResetService/Reset',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_testing_reset_service_pb.ResetRequest,responseType: google_protobuf_empty_pb.Empty,requestSerialize: serialize_com_daml_ledger_api_v1_testing_ResetRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_testing_ResetRequest,responseSerialize: serialize_google_protobuf_Empty,responseDeserialize: deserialize_google_protobuf_Empty,},}
TimeServiceService:{ getTime: object; setTime: object } = exports['com.daml.ledger.api.v1.testing.TimeService'] = {// Returns a stream of time updates.// Always returns at least one response, where the first one is the current time.// Subsequent responses are emitted whenever the ledger server's time is updated.getTime: {path: '/com.daml.ledger.api.v1.testing.TimeService/GetTime',requestStream: false,responseStream: true,requestType: com_daml_ledger_api_v1_testing_time_service_pb.GetTimeRequest,responseType: com_daml_ledger_api_v1_testing_time_service_pb.GetTimeResponse,requestSerialize: serialize_com_daml_ledger_api_v1_testing_GetTimeRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_testing_GetTimeRequest,responseSerialize: serialize_com_daml_ledger_api_v1_testing_GetTimeResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_testing_GetTimeResponse,},// Allows clients to change the ledger's clock in an atomic get-and-set operation.setTime: {path: '/com.daml.ledger.api.v1.testing.TimeService/SetTime',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_testing_time_service_pb.SetTimeRequest,responseType: google_protobuf_empty_pb.Empty,requestSerialize: serialize_com_daml_ledger_api_v1_testing_SetTimeRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_testing_SetTimeRequest,responseSerialize: serialize_google_protobuf_Empty,responseDeserialize: deserialize_google_protobuf_Empty,},}
TransactionServiceService:{ getFlatTransactionByEventId: object; getFlatTransactionById: object; getLedgerEnd: object; getTransactionByEventId: object; getTransactionById: object; getTransactionTrees: object; getTransactions: object } = exports['com.daml.ledger.api.v1.TransactionService'] = {// Read the ledger's filtered transaction stream for a set of parties.getTransactions: {path: '/com.daml.ledger.api.v1.TransactionService/GetTransactions',requestStream: false,responseStream: true,requestType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionsRequest,responseType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionsResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetTransactionsRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionsRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetTransactionsResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionsResponse,},// Read the ledger's complete transaction tree stream for a set of parties.getTransactionTrees: {path: '/com.daml.ledger.api.v1.TransactionService/GetTransactionTrees',requestStream: false,responseStream: true,requestType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionsRequest,responseType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionTreesResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetTransactionsRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionsRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetTransactionTreesResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionTreesResponse,},// Lookup a transaction tree by the ID of an event that appears within it.// Returns ``NOT_FOUND`` if no such transaction exists.// For looking up a transaction instead of a transaction tree, please see GetFlatTransactionByEventIdgetTransactionByEventId: {path: '/com.daml.ledger.api.v1.TransactionService/GetTransactionByEventId',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionByEventIdRequest,responseType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetTransactionByEventIdRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionByEventIdRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetTransactionResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionResponse,},// Lookup a transaction tree by its ID.// Returns ``NOT_FOUND`` if no such transaction exists.// For looking up a transaction instead of a transaction tree, please see GetFlatTransactionByIdgetTransactionById: {path: '/com.daml.ledger.api.v1.TransactionService/GetTransactionById',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionByIdRequest,responseType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetTransactionByIdRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionByIdRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetTransactionResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionResponse,},// Lookup a transaction by the ID of an event that appears within it.// Returns ``NOT_FOUND`` if no such transaction exists.getFlatTransactionByEventId: {path: '/com.daml.ledger.api.v1.TransactionService/GetFlatTransactionByEventId',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionByEventIdRequest,responseType: com_daml_ledger_api_v1_transaction_service_pb.GetFlatTransactionResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetTransactionByEventIdRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionByEventIdRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetFlatTransactionResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetFlatTransactionResponse,},// Lookup a transaction by its ID.// Returns ``NOT_FOUND`` if no such transaction exists.getFlatTransactionById: {path: '/com.daml.ledger.api.v1.TransactionService/GetFlatTransactionById',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_transaction_service_pb.GetTransactionByIdRequest,responseType: com_daml_ledger_api_v1_transaction_service_pb.GetFlatTransactionResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetTransactionByIdRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetTransactionByIdRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetFlatTransactionResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetFlatTransactionResponse,},// Get the current ledger end.// Subscriptions started with the returned offset will serve transactions created after this RPC was called.getLedgerEnd: {path: '/com.daml.ledger.api.v1.TransactionService/GetLedgerEnd',requestStream: false,responseStream: false,requestType: com_daml_ledger_api_v1_transaction_service_pb.GetLedgerEndRequest,responseType: com_daml_ledger_api_v1_transaction_service_pb.GetLedgerEndResponse,requestSerialize: serialize_com_daml_ledger_api_v1_GetLedgerEndRequest,requestDeserialize: deserialize_com_daml_ledger_api_v1_GetLedgerEndRequest,responseSerialize: serialize_com_daml_ledger_api_v1_GetLedgerEndResponse,responseDeserialize: deserialize_com_daml_ledger_api_v1_GetLedgerEndResponse,},}
A command can either create a new contract or exercise a choice on an existing contract.
Uses the
commandType
string type tag to differentiate between types in the union.