Skip to main content

sui_getMoveFunctionArgTypes RPC Method

Return the argument types of a Move function, based on normalized Type.

Updated on
Dec 10, 2024

sui_getMoveFunctionArgTypes 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
array
It can be one of the following:
Pure
string
A pure value type
Object
string
Indicates the argument is an object passed by mutable reference. Possible values: 'ByImmutableReference', 'ByMutableReference', or 'ByValue'
Request
1
curl --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_getMoveFunctionArgTypes",
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