文档
定价GitHub控制台

Sui

sui.rpc.v2.MovePackageService/ListPackageVersions20 额度

List the versions of a Move package

网络: sui

参数

名称类型描述
package_idstringID of any version of the package.
page_sizeuint32Maximum number of versions per page. At most 1000 when unspecified; values above 10000 are coerced to 10000. (可选)
page_tokenbytesThe 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