Contains the payload to run a function within a module.
Fully qualified module name in format "account_address::module_name" e.g. "0x1::coin"
The function name. e.g "transfer"
Type arguments that move function requires.
arguments to the move function.
Static
buildBuild an EntryFunction payload from raw primitive values.
Fully qualified module name in the format "AccountAddress::module_id", e.g., "0x1::coin".
The name of the function to be called.
Type arguments that the Move function requires.
Arguments to the Move function.
EntryFunction
Static
deserializeDeserializes an entry function payload with the arguments represented as EntryFunctionBytes instances.
A deserialized EntryFunction payload for a transaction.
EntryFunctionBytes
NOTE: When you deserialize an EntryFunction payload with this method, the entry function arguments are populated into the deserialized instance as type-agnostic, raw fixed bytes in the form of the EntryFunctionBytes class.
In order to correctly deserialize these arguments as their actual type representations, you must know the types of the arguments beforehand and deserialize them yourself individually.
One way you could achieve this is by using the ABIs for an entry function and deserializing each argument as its given, corresponding type.
Represents an entry function that can be serialized and deserialized. This class encapsulates the details required to invoke a function within a module, including the module name, function name, type arguments, and function arguments.
Param: module_name
Fully qualified module name in the format "account_address::module_name" (e.g., "0x1::coin").
Param: function_name
The name of the function (e.g., "transfer").
Param: type_args
Type arguments required by the Move function.
Param: args
Arguments to the Move function.