Skip to main content

GetFunction gRPC Method

Retrieves information about a specific function 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 function

Returns

function
object

The function information

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 (e.g., MUTABLE, IMMUTABLE)

body
object

The parameter type information

type
string

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

typeName
string

The fully qualified type name for DATATYPE types

typeParameterInstantiation
array

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

returns
array

Array of return types

body
object

The return type information

type
string

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

typeName
string

The fully qualified type name for DATATYPE types

typeParameterInstantiation
array

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

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