gRPCGetPackage
sui-mainnet.nodit.io:443 sui.rpc.v2.MovePackageService/GetPackageunaryRetrieves the Move package information for the specified package ID.
Request and response messages are identical for both transports. Only the wire protocol, headers, and client library differ.
- Protocol
- Native gRPC over HTTP/2 with TLS. Suited to server-side clients and grpcurl.
- Content-Type
application/grpc- Headers
x-api-key- Streaming
- Server, client, and bidirectional streaming are all supported.
- Errors
- grpc-status and grpc-message are delivered as HTTP/2 trailers.
Required. The storage_id of the requested package.
Package ObjectId (storage ID).
ID of the first published version.
Version of the package.
Modules in the package.
Name of the module.
Serialized bytecode.
Datatypes defined in the module.
Fully qualified type name.
Package storage ID that defines the type.
Module name.
Datatype name.
Abilities of the datatype.
Generic type parameters.
Ability constraints on the parameter.
Whether the parameter is phantom.
Whether it is a struct or enum.
Fields of the datatype.
Name of the field.
Position in definition order.
Type of the field.
Variants if the datatype is an enum.
Name of the variant.
Position in definition order.
Fields of the variant.
Functions defined in the module.
Name of the function.
Visibility (public/private/public(friend)).
Whether the function is an entry function.
Generic type parameters.
Ability constraints on the parameter.
Whether the parameter is phantom.
Parameter types.
Reference kind, if the type is a reference.
The signature body.
Return types.
Reference kind, if the type is a reference.
The signature body.
Type origins for the package's types.
Name of the defining module.
Name of the datatype.
Package ID where the type originated.
Transitive dependencies (linkage table).
Original package ID.
Upgraded package ID.
Upgraded package version.