ТарифыGitHubКабинет

Sui

sui.rpc.v2.MovePackageService/GetPackageКредиты: 40

Return a Move package with its modules

Сеть: sui

Параметры

ИмяТипОписание
package_idstringID of the package. Without version or at_checkpoint the package at exactly this ID is returned; with one of them it identifies the upgrade lineage.
versionuint64Return this version of the package lineage. One of version or at_checkpoint. (необязательно)
at_checkpointuint64Return the version of the lineage that was current at this checkpoint (NOT_FOUND above the highest indexed one). (необязательно)

Результат

Тип

GetPackageResponse

package: the Package with its modules.

Примеры кода

# 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/GetPackage