List package versions
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists versions of a Move package.
gRPC method: sui.rpc.v2.MovePackageService.ListPackageVersions (unary).
This is a gRPC method (HTTP/2, Protocol Buffers), not a REST endpoint. The request and response bodies below are shown in the proto3 JSON form that tools such as grpcurl and Postman accept and print. Pass your NOWNodes API key as the api-key gRPC metadata header. Proto files: sui/rpc/v2/move_package_service.proto.
Example grpcurl request:
grpcurl \
-insecure \
-H 'api-key: YOUR_API_KEY' \
-emit-defaults \
-proto './sui-apis-grpc/proto/sui/rpc/v2/move_package_service.proto' \
-import-path './sui-apis-grpc/proto' \
-d '{"packageId": "0xPACKAGE_ID", "pageSize": 100}' \
'sui-grpc.nownodes.io' \
sui.rpc.v2.MovePackageService.ListPackageVersionsBody
packageIdstringRequired. The storage_id of any version of the package.
pageSizeinteger<uint32>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.
pageTokenstring<byte>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. Base64-encoded bytes.
Response
Successful response.
gRPC error. The status code (e.g. UNAUTHENTICATED, INVALID_ARGUMENT, NOT_FOUND) is returned in the grpc-status trailer, details in grpc-message.