Documentation

    Interface UnsafeSplitCoinParams

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

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

    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

    signal?: AbortSignal
    signer: string

    the transaction signer's Sui address

    splitAmounts: string[]

    the amounts to split out from the coin

    MMNEPVFCICPMFPCPTTAAATR