Skip to main content

JSON Ledger API

GET /v2/package-vetting

GET/v2/package-vetting

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 with canton.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

Operation IDgetV2Package-vetting
AuthenticationBearer token
Published3.6

Inputs

Body

application/json
packageMetadataFilterPackageMetadataFilter
Filter 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.
topologyStateFilterTopologyStateFilter
Filter 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.
pageTokenstring
Pagination 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. Optional
pageSizeinteger (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. Optional

Outputs

200

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 empty
nextPageTokenstring
Pagination 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. Optional

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 GET /v2/package-vetting operation changed in this snapshot.

Updated3.5

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

Deprecated3.4