unsafe_mergeCoins

Create an unsigned batched transaction.

Parameters:

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

primary_coin< ObjectID > -The coin object to merge into, this coin will remain after the transaction

coin_to_merge< ObjectID > - The coin object to be merged, this coin will be destroyed, the balance will be added to primary_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:

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

// Result

Last updated