Hierarchy

  • Script

Constructors

Properties

Methods

Constructors

  • Scripts contain the Move bytecodes payload that can be submitted to Aptos chain for execution.

    Example

    A coin transfer function has one type argument "CoinType".

    public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
    

    Example

    A coin transfer function has three arugments "from", "to" and "amount".

    public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
    

    Parameters

    Returns Script

Properties

Arugments to bytecode function.

code: Uint8Array

Move bytecode

ty_args: Seq<TypeTag>

Type arguments that bytecode requires.

Methods

Generated using TypeDoc