unsafe_splitCoin
Transaction Builder API Create an unsigned transaction to split a coin object into multiple coins.
Parameters
signer
:<SuiAddress>
- the transaction signer's Sui addresscoin_object_id
:<ObjectID>
- the coin object to be spiltsplit_amounts
:<[BigInt_for_uint64]>
- the amounts to split out from the coingas
:<ObjectID>
- gas object to be used in this transaction, node will pick one from the signer's possession if not providedgas_budget
:<BigInt_for_uint64>
- the gas budget, the transaction will fail if the gas cost exceed the budget
Returns
TransactionBytes
:<TransactionBytes>
gas :
<[ObjectRef]>
- the gas object to be usedinputObjects :
<[InputObjectKind]>
- objects to be used in this transactiontxBytes :
<[Base64]>
- BCS serialized transaction data bytes without its type tag, as base-64 encoded string.
Example Request and Result for unsafe_splitCoin
Request
Result
Last updated