split Coin Equal
suspend fun splitCoinEqual(signer: SuiAddress, coinObjectId: ObjectId, splitCount: Long, gas: ObjectId? = null, gasBudget: Long): TransactionBlockBytes
Create an unsigned transaction to split a coin object into multiple equal-size coins.
Return
TransactionBlockBytes The transaction block bytes after the split is completed.
Parameters
signer
The transaction signer's Sui address.
coin Object Id
The ID of the coin to be split.
split Count
The number of coins to split into.
gas
The gas object to be used in this transaction, node will pick one from the signer's possession if not provided.
gas Budget
The gas budget, the transaction will fail if the gas cost exceed the budget.
Throws
if there is an error during the split.