Alchemy Logo

unsafe_splitCoin

POST
/{apiKey}

Creates a transaction that splits a coin into multiple coins with specific amounts. This is useful for dividing SUI coins before transferring or staking.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

signerstringrequired

The transaction signer's Sui address.

coin_object_idstringrequired

The coin object to be split.

split_amountsstring[]required

The amounts to split out from the coin.

gasstringrequired

The gas object to be used in this transaction. If not specified, the node selects one automatically.

gas_budgetstringrequired

The gas budget. The transaction fails if the cost exceeds this amount.

Responses

200

The unsigned transaction bytes and input objects.

Was this page helpful?