Sui
sui.rpc.v2.MovePackageService/ListPackageVersions20 kredi
List the versions of a Move package
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| 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. (isteğe bağlı) |
| page_token | bytes | The next_page_token of the previous response, to fetch the next page (base64 in JSON). (isteğe bağlı) |
Dönüş değeri
Tür
ListPackageVersionsResponse
versions: array of PackageVersion (package_id, version), ordered by version, and next_page_token (omitted on the last page).
Kod örnekleri
# 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