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,)
ReadonlyargsThe arguments that the bytecode function requires.
ReadonlybytecodeThe move module bytecode
Readonlytype_The type arguments that the bytecode function requires.
Staticdeserialize
Representation of a Script that can serialized and deserialized