Sui
sui.rpc.v2.MovePackageService/ListPackageVersions20 크레딧
List the versions of a Move package
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| package_id | string | ID of any version of the package. |
| page_size | uint32 | Maximum number of versions per page. At most 1000 when unspecified; values above 10000 are coerced to 10000. (선택) |
| page_token | bytes | The next_page_token of the previous response, to fetch the next page (base64 in JSON). (선택) |
반환값
타입
ListPackageVersionsResponse
versions: array of PackageVersion (package_id, version), ordered by version, and next_page_token (omitted on the last page).
코드 예제
# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
-H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
-d '{
"package_id": "0x0000000000000000000000000000000000000000000000000000000000000002"
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.MovePackageService/ListPackageVersions