Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 933 Bytes

File metadata and controls

37 lines (24 loc) · 933 Bytes
description Create an unsigned transaction to split a coin object into multiple equal-size coins.

unsafe_splitCoinEqual

Parameters:

signer< SuiAddress > - The transaction signer's Sui address

coin_object_id< ObjectID > - The coin object to be spilt

split_amounts<[ BigInt_for_uint64 ]> - The amounts to split out from the coin

gas< ObjectID > - Gas object to be used in this transaction, node will pick one from the signer's possession if not provided

gas_budget< BigInt_for_uint64 > - The gas budget, the transaction will fail if the gas cost exceed the budget

Returns:

TransactionBlockBytes< TransactionBlockBytes >

Example:

{% code overflow="wrap" %}

// Request
curl  https://sui.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" 
--data 
'<as described above>'

// Result

{% endcode %}