call
Call Move Function
This command is used to call a Move function.
Usage
movement sui client call [OPTIONS] --package <PACKAGE> --module <MODULE> --function <FUNCTION> --gas-budget <GAS_BUDGET>
Options
--package <PACKAGE>
: Object ID of the package, which contains the module.--module <MODULE>
: The name of the module in the package.--function <FUNCTION>
: Function name in module.--type-args <TYPE_ARGS>...
: Type arguments to the generic function being called. All must be specified, or the call will fail.--args <ARGS>...
: Simplified ordered args like in the function syntax. ObjectIDs, Addresses must be hex strings.--gas <GAS>
: ID of the gas object for gas payment, in 20 bytes Hex string. If not provided, a gas object with at least gas_budget value will be selected.--gas-budget <GAS_BUDGET>
: Gas budget for this call.--serialize-unsigned-transaction
: Instead of executing the transaction, serialize the BCS bytes of the unsigned transaction data (TransactionData) using base64 encoding, and print out the string.--serialize-signed-transaction
: Instead of executing the transaction, serialize the BCS bytes of the signed transaction data (SenderSignedData) using base64 encoding, and print out the string.--json
: Return command outputs in JSON format.
Last updated