PreciosGitHubPanel

Sui

sui_getMoveFunctionArgTypes15 créditos

Return argument types of a Move function

Red: sui

Parámetros

NombreTipoDescripción
packagestringID of the Move package.
modulestringName of the module.
functionstringName of the function.

Valor devuelto

Tipo

array

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

Ejemplos de código

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"
  ]
}'