Create an unsigned transaction to merge multiple coins into one coin.

interface UnsafeMergeCoinsParams {
    coinToMerge: string;
    gas?: null | string;
    gasBudget: string;
    primaryCoin: string;
    signer: string;
}

Properties

coinToMerge: string

the coin object to be merged, this coin will be destroyed, the balance will be added to primary_coin

gas?: null | string

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

gasBudget: string

the gas budget, the transaction will fail if the gas cost exceed the budget

primaryCoin: string

the coin object to merge into, this coin will remain after the transaction

signer: string

the transaction signer's Sui address