List package versions
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists versions of a Move package.
Both legacy page-token pagination and cursor pagination are supported. Omit packageId to list all packages in publish order. In cursor mode use the last version cursor as options.after (ascending) or options.before (descending). With an explicit endCheckpoint, LEDGER_TIP is not proof of range completion; CHECKPOINT_BOUND indicates completion.
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
Legacy page-token mode requires packageId and no cursor/range fields. In cursor mode, pageSize and pageToken must be unset; omitting packageId also selects cursor mode. Version bounds require packageId.
packageIdstringStorage ID of any version of a package. Omit to list versions of every package in publish order (cursor mode).
pageSizeinteger<uint32>Legacy page-token mode only: default 1000, capped at 10000. Requires packageId and no cursor options or range selectors.
pageTokenstring<byte>Opaque base64 page token from the previous legacy page. Requires packageId and no cursor options or range selectors; other parameters must match.
optionsQueryOptionsCursor paging options. Bounds apply in canonical order regardless of ordering. Cursors are specific to this listing.
startVersionstring<uint64>Inclusive version bound; requires packageId.
endVersionstring<uint64>Exclusive version bound; requires packageId. Below startVersion is INVALID_ARGUMENT.
startCheckpointstring<uint64>Inclusive publish checkpoint bound.
endCheckpointstring<uint64>Exclusive publish checkpoint bound. Below startCheckpoint is INVALID_ARGUMENT.
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. A node that does not support the requested operation returns UNIMPLEMENTED (NOT_SERVED_HERE); a node not ready to serve it returns UNAVAILABLE (NOT_READY). Historical data outside the retained range can return OUT_OF_RANGE (BELOW_EARLIEST_AVAILABLE); requests beyond the indexed tip can return OUT_OF_RANGE (ABOVE_LATEST_AVAILABLE) where applicable. Mixing legacy and cursor/range parameters returns INVALID_ARGUMENT.