sui_getNormalizedMoveFunction RPC Method
Parameters
package
string
REQUIRED
The address of the package on the Sui blockchain containing the module
module
string
REQUIRED
The name of the module containing the Move function
function
string
REQUIRED
The name of the Move function whose argument types are being queried
Returns
result
object
The result object which contains the following fields:
visibility
string
Indicates the visibility level of the function
isEntry
boolean
Specifies whether the function is an entry function. An entry function can be called directly in a transaction
typeParameters
array
An array of typeParameters
abilities
array
Describes the abilities associated with a type parameter
parameters
array
An array of parameters. It can have one of the following fields/objects:
MutableReference/Reference
object
The MutableReference/Reference object which contains the following fields:
Struct
object
The Struct object which contains the following fields:
address
string
The address of the module where the structure resides
module
string
The name of the module containing the structure
name
string
The name of the structure
typeArguments
array
An array of typeArguments
TypeParameter
integer
Represents the type parameter of the structure
typeIdentifier
string
It can be one of the following strings - 'Bool' | 'U8' | 'U16' | 'U32' | 'U64' | 'U128' | 'U256' | 'Address' | 'Signer'
return
array
An array of return
Struct
object
The Struct object which contains the following fields:
address
string
The address of the module where the structure resides
module
string
The name of the module containing the structure
name
string
The name of the structure
typeArguments
array
An array of typeArguments
TypeParameter
integer
Represents the type parameter of the structure
Request
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \2--header 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "sui_getNormalizedMoveFunction",7"params": [8"0x158f2027f60c89bb91526d9bf08831d27f5a0fcb0f74e6698b9f0e1fb2be5d05",9"deepbook_utils",10"place_market_order_bid"11]12}13'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free