Removed in 3.7. Historical definition from 3.6.
Lists which participant node vetted what packages on which synchronizer. Deprecated since Canton 3.5: disabled by default since Canton 3.6 (re-enable temporarily withcanton.participants.<participant>.features.deprecated.enable-deprecated-endpoints-35 = true) and will be removed in Canton 3.7. Use POST /v2/package-vetting/list instead.Protocol Details
Inputs
application/json
packageMetadataFilterPackageMetadataFilterFilter the VettedPackages by package metadata. A PackageMetadataFilter without package_ids and without package_name_prefixes matches any vetted package. Non-empty fields specify candidate values of which at least one must match. If both fields are set, then a candidate is returned if it matches one of the fields.
topologyStateFilterTopologyStateFilterFilter the vetted packages by the participant and synchronizer that they are hosted on. Empty fields are ignored, such that a
TopologyStateFilter without participant_ids and without synchronizer_ids matches a vetted package hosted on any participant and synchronizer. Non-empty fields specify candidate values of which at least one must match. If both fields are set then at least one candidate value must match from each field.pageTokenstringPagination token to determine the specific page to fetch. Using the token guarantees that
VettedPackages on a subsequent page are all greater (VettedPackages are sorted by synchronizer ID then participant ID) than the last VettedPackages on a previous page. The server does not store intermediate results between calls chained by a series of page tokens. As a consequence, if new vetted packages are being added and a page is requested twice using the same token, more packages can be returned on the second call. Leave unspecified (i.e. as empty string) to fetch the first page. OptionalpageSizeinteger (int32)Maximum number of
VettedPackages results to return in a single page. If the page_size is unspecified (i.e. left as 0), the server will decide the number of results to be returned. If the page_size exceeds the maximum supported by the server, an error will be returned. To obtain the server’s maximum consult the PackageService descriptor available in the VersionService. OptionalOutputs
application/json
vettedPackagesVettedPackages[]All
VettedPackages that contain at least one VettedPackage matching both a PackageMetadataFilter and a TopologyStateFilter. Sorted by synchronizer_id then participant_id. Optional: can be emptynextPageTokenstringPagination token to retrieve the next page. Empty string once there are no further results.
PackageMetadataFilter is applied after TopologyStateFilter has already produced a page, so that page can end up empty even when it has a next token. Keep following the token until there’s no token left. Optionalapplication/json
codestringrequiredcausestringrequiredcorrelationIdstringtraceIdstringcontextMap_StringrequiredresourcesTuple2_String_String[]errorCategoryinteger (int32)requiredgrpcCodeValueinteger (int32)retryInfostringdefiniteAnswerbooleanHistory
Removed in
3.7Last available in 3.6. Retained for historical reference.
Updated
3.6The GET /v2/package-vetting operation changed in this snapshot.
Updated
3.5The GET /v2/package-vetting operation changed in this snapshot.
Deprecated
3.4cURL
cURL
Python
Python
JavaScript
JavaScript
PHP
PHP
Go
Go
Java
Java
Ruby
Ruby
200application/json
200
400text/plain
400
defaultapplication/json
default