moveCall

suspend fun moveCall(signer: SuiAddress, packageObjectId: ObjectId, module: String, function: String, typeArguments: List<TypeTag>, arguments: List<Any>, gas: ObjectId? = null, gasBudget: Long, executionMode: TransactionBlockBuilderMode? = null): TransactionBlockBytes

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

Return

The resulting TransactionBlockBytes

Parameters

signer

The transaction signer's Sui address

packageObjectId

The Move package ID, e.g. 0x2

module

The Move module name, e.g. pay

function

The move function name, e.g. split

typeArguments

The type arguments of the Move function

arguments

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

gas

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

gasBudget

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

executionMode

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

Throws

if there is an error in the response.