Skip to main content

GetDatatype gRPC Method

Retrieves information about a specific datatype in a Move package.

Updated on
Mar 26, 2026

Parameters

package_id
string
REQUIRED

The storage_id of the requested package

module_name
string
REQUIRED

The name of the requested module

name
string
REQUIRED

The name of the requested datatype

Returns

datatype
object

The datatype information

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., STORE, KEY, COPY, DROP)

typeParameters
array

Array of type parameters for generic types

isPhantom
boolean

Whether this type parameter is phantom

kind
string

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

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

type
string

The type category (e.g., DATATYPE, TYPE_PARAMETER)

typeName
string

The fully qualified type name for DATATYPE types

typeParameterInstantiation
array

(Optional) Array of type parameter instantiations for generic types

type
string

The type of instantiation (e.g., TYPE_PARAMETER)

typeParameter
integer

The index of the type parameter

typeParameter
integer

The index of the type parameter for TYPE_PARAMETER types

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