unsafe_moveCall
Create an unsigned transaction to execute a Move call on the network, by calling the specified function in the module of a given package.
Parameters:
signer< SuiAddress > - The transaction signer's Sui address
package_object_id< ObjectID > - The Move package ID, e.g. 0x2
module< string > - The Move module name, e.g. pay
function< string > - The move function name, e.g. split
type_arguments<[ TypeTag ]> - The type arguments of the Move function
arguments<[ SuiJsonValue ]> - The arguments to be passed into the Move function, in SuiJson format
gas< ObjectID > - Gas object to be used in this transaction, node will pick one from the signer's possession if not provided
gas_budget< BigInt_for_uint64 > - The gas budget, the transaction will fail if the gas cost exceed the budget
execution_mode< SuiTransactionBlockBuilderMode > - Whether this is a Normal transaction or a Dev Inspect Transaction. Default to be SuiTransactionBlockBuilderMode::Commit
when it's None.
Returns:
TransactionBlockBytes< TransactionBlockBytes >
Example:
Last updated