githubEdit

ListPackageVersions

Parameters:

string package_id - Required. The storage_id of any version of the package.

uint32 page_size - The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 1000 entries will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.

bytes page_token - A page token, received from a previous ListPackageVersions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListPackageVersions must match the call that provided the page token.

Returns:

versions - List of all package versions, ordered by version.

bytes next_page_token - A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Example:

grpcurl -proto .sui/rpc/v2/move_package_service.proto
-H "x-token: YOUR_TOKEN_VALUE" 
-d 
'{
 .....

}' 
sui.blockpi.network:443 sui.rpc.v2.MovePackageService/ListPackageVersions

Last updated

Was this helpful?