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.
A coin transfer function has one type argument "CoinType".
public entry fun transfer<CoinType>(from: &signer, to: address, amount: u64)
A coin transfer function has three arguments "from", "to" and "amount".
public entry fun transfer<CoinType>(from: &signer, to: address, amount: u64)
Readonly
argsReadonly
function_Readonly
module_Readonly
type_Static
buildA helper function to build a EntryFunction payload from raw primitive values
Fully qualified module name in format "AccountAddress::module_id" e.g. "0x1::coin"
Function name
Type arguments that move function requires.
Arguments to the move function.
EntryFunction
A coin transfer function has one type argument "CoinType".
public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
A coin transfer function has three arguments "from", "to" and "amount".
public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
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.
Representation of a EntryFunction that can serialized and deserialized