Create an unsigned transaction to split a coin object into multiple coins.

interface UnsafeSplitCoinParams {
    coinObjectId: string;
    gas?: null | string;
    gasBudget: string;
    signer: string;
    splitAmounts: string[];
}

Properties

coinObjectId: string

the coin object to be spilt

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

signer: string

the transaction signer's Sui address

splitAmounts: string[]

the amounts to split out from the coin