Skip to main content

GetPackage gRPC Method

Retrieves information about a Move package.

Updated on
Mar 26, 2026

Parameters

package_id
string
REQUIRED

The storage_id of the requested package

Returns

package
object

The complete Move package information including modules, datatypes, and functions

storageId
string

The storage ID of the package

originalId
string

The original ID of the package

version
string

The version number of the package

modules
array

Array of modules contained in the package

name
string

The name of the module

datatypes
array

Array of datatypes defined in the module

typeName
string

The fully qualified type name

definingId
string

The ID of the package that defines this type

module
string

The module name where this type is defined

name
string

The simple name of the type

abilities
array

Array of abilities this type has (e.g., KEY, COPY, DROP, STORE)

kind
string

The kind of datatype (e.g., STRUCT)

typeParameters
array

Array of type parameters for generic types

fields
array

Array of fields in the struct

name
string

The name of the field

position
integer

The position of the field in the struct

type
object

The type information of the field

functions
array

Array of functions defined in the module

name
string

The name of the function

visibility
string

The visibility of the function (e.g., PUBLIC, PRIVATE, FRIEND)

isEntry
boolean

Whether this function is an entry function

typeParameters
array

Array of type parameters for generic functions

parameters
array

Array of function parameters

reference
string

The reference type (MUTABLE, IMMUTABLE)

body
object

The parameter type information

type
string

The type category (ADDRESS, U256, DATATYPE, BOOL, etc.)

typeName
string

The fully qualified type name for DATATYPE types

returns
array

Array of return types

body
object

The return type information

type
string

The type category (ADDRESS, U256, DATATYPE, BOOL, etc.)

typeName
string

The fully qualified type name for DATATYPE types

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free