Create an unsigned transaction to send SUI coin object to a Sui address. The SUI object is also used as the gas object.

interface UnsafeTransferSuiParams {
    amount?: null | string;
    gasBudget: string;
    recipient: string;
    signer: string;
    suiObjectId: string;
}

Properties

amount?: null | string

the amount to be split out and transferred

gasBudget: string

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

recipient: string

the recipient's Sui address

signer: string

the transaction signer's Sui address

suiObjectId: string

the Sui coin object to be used in this transaction