Scripts contain the Move bytecodes payload that can be submitted to Aptos chain for execution.
The move module bytecode
The type arguments that the bytecode function requires.
The arguments that the bytecode function requires.
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,)
Readonly
argsThe arguments that the bytecode function requires.
Readonly
bytecodeThe move module bytecode
Readonly
type_The type arguments that the bytecode function requires.
Static
deserialize
Representation of a Script that can serialized and deserialized