Create an unsigned transaction to execute a Move call on the network, by calling the specified function in the module of a given package.

interface UnsafeMoveCallParams {
    arguments: unknown[];
    executionMode?: null | SuiTransactionBlockBuilderMode;
    function: string;
    gas?: null | string;
    gasBudget: string;
    module: string;
    packageObjectId: string;
    signer: string;
    typeArguments: string[];
}

Properties

arguments: unknown[]

the arguments to be passed into the Move function, in SuiJson format

executionMode?: null | SuiTransactionBlockBuilderMode

Whether this is a Normal transaction or a Dev Inspect Transaction. Default to be SuiTransactionBlockBuilderMode::Commit when it's None.

function: string

the move function name, e.g. split

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

module: string

the Move module name, e.g. pay

packageObjectId: string

the Move package ID, e.g. 0x2

signer: string

the transaction signer's Sui address

typeArguments: string[]

the type arguments of the Move function