Sui
sui.rpc.v2.MovePackageService/GetPackage40 크레딧
Return a Move package with its modules
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| package_id | string | ID 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. |
| version | uint64 | Return this version of the package lineage. One of version or at_checkpoint. (선택) |
| at_checkpoint | uint64 | Return 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