Skip to main content

JSON Ledger API

POST /v2/package-vetting

POST/v2/package-vetting

Removed in 3.7. Historical definition from 3.6.

Update the vetted packages of this participant. Deprecated since Canton 3.5: disabled by default since Canton 3.6 (re-enable temporarily with canton.participants.<participant>.features.deprecated.enable-deprecated-endpoints-35 = true) and will be removed in Canton 3.7. Use POST /v2/package-vetting/update instead.

Protocol Details

Operation IDpostV2Package-vetting
AuthenticationBearer token
Published3.6

Inputs

Body

application/json
changesVettedPackagesChange[]required
Changes to apply to the current vetting state of the participant on the specified synchronizer. The changes are applied in order. Any package not changed will keep their previous vetting state. Required: must be non-empty
dryRunboolean
If dry_run is true, then the changes are only prepared, but not applied. If a request would trigger an error when run (e.g. TOPOLOGY_DEPENDENCIES_NOT_VETTED), it will also trigger an error when dry_run. Use this flag to preview a change before applying it. Defaults to false. Optional
synchronizerIdstring
If set, the requested changes will take place on the specified synchronizer. If synchronizer_id is unset and the participant is only connected to a single synchronizer, that synchronizer will be used by default. If synchronizer_id is unset and the participant is connected to multiple synchronizers, the request will error out with PACKAGE_SERVICE_CANNOT_AUTODETECT_SYNCHRONIZER. Optional
expectedTopologySerialPriorTopologySerial
The serial of last VettedPackages topology transaction on a given participant and synchronizer.
updateVettedPackagesForceFlagsstring[]
Controls whether potentially unsafe vetting updates are allowed. Optional: can be empty

Outputs

200

application/json
pastVettedPackagesVettedPackages
The list of packages vetted on a given participant and synchronizer, modelled after VettedPackages in topology.proto &lt;https://github.com/digital-asset/canton/blob/main/community/base/src/main/protobuf/com/digitalasset/canton/protocol/v30/topology.proto#L206&gt;_. The list only contains packages that matched a filter in the query that originated it.
newVettedPackagesVettedPackagesrequired
The list of packages vetted on a given participant and synchronizer, modelled after VettedPackages in topology.proto &lt;https://github.com/digital-asset/canton/blob/main/community/base/src/main/protobuf/com/digitalasset/canton/protocol/v30/topology.proto#L206&gt;_. The list only contains packages that matched a filter in the query that originated it.

400

text/plain
valuestringrequired

default

application/json
codestringrequired
causestringrequired
correlationIdstring
traceIdstring
contextMap_Stringrequired
resourcesTuple2_String_String[]
errorCategoryinteger (int32)required
grpcCodeValueinteger (int32)
retryInfostring
definiteAnswerboolean

History

Removed in3.7

Last available in 3.6. Retained for historical reference.

Updated3.6

The POST /v2/package-vetting operation changed in this snapshot.

Updated3.5

The POST /v2/package-vetting operation changed in this snapshot.

Deprecated3.4