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_splitCoinEqual"
required
JSON-RPC method name.
params
object
required
Creates an unsigned transaction to split a coin object into multiple equal-size coins.Positional parameters for unsafe_splitCoinEqual:
  • params[0]: The transaction signer’s Sui address.
  • params[1]: The coin object ID to split.
  • params[2]: The number of equal-sized coins to split into.
  • params[3]: Optional gas object ID. If not specified, the node selects one.
  • params[4]: The gas budget for the transaction.

Returns

result
object
The unsigned transaction block that performs the coin split into equal-size parts.
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_splitCoinEqual",
    "params": [
      "0xaabbccddeeff0011223344556677889900aabbccddeeff001122334455667788",
      "0xcoinobjectabc123456789abcdef",
      "3",
      "0xgasobject001122334455",
      "100000"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}