Skip to main content

Parameters

chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"unsafe_moveCall"
required
JSON-RPC method name.
params
object
required
Create an unsigned transaction to execute a Move call on the network.Positional parameters for unsafe_moveCall:
  • params[0]: The signer’s Sui address.
  • params[1]: The Move package ID.
  • params[2]: The Move module name.
  • params[3]: The Move function name.
  • params[4]: The type arguments of the Move function.
  • params[5]: Arguments for the Move function, in SuiJson format.
  • params[6]: Optional gas object to use. If not provided, one will be auto-selected.
  • params[7]: The gas budget for the transaction.
  • params[8]: Execution mode: normal or dev inspect.

Returns

result
object
Unsigned transaction block for executing a Move function.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "unsafe_moveCall",
    "params": [
      "0x9b5cd5df0df2a168259b7115a41ccc0a372b6fd0026e0c63043492ce4d0c19a6",
      "0x2",
      "pay",
      "split",
      [
        "0x2::sui::SUI"
      ],
      [
        "\"10000\"",
        "\"0x5eeb1d...\""
      ],
      "0x1a3e898029d024eec1d44c6af5e2facded84d03b5373514f16e3d66e00081051",
      "100000",
      "Commit"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}