TarifsGitHubTableau de bord

Sui

sui_getMoveFunctionArgTypes15 crédits

Return argument types of a Move function

Réseau: sui

Paramètres

NomTypeDescription
packagestringID of the Move package.
modulestringName of the module.
functionstringName of the function.

Valeur renvoyée

Type

array

The argument types of the function: each is "Pure" or an object kind such as { Object: "ByImmutableReference" | "ByMutableReference" | "ByValue" }.

Exemples de code

curl https://holy-burned-sky-sui-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getMoveFunctionArgTypes",
  "params": [
    "0x0000000000000000000000000000000000000000000000000000000000000002",
    "coin",
    "value"
  ]
}'