Function fetchEntryFunctionAbi

  • Fetches the ABI for an entry function from the specified module address. This function validates if the ABI corresponds to an entry function and retrieves its parameters.

    Parameters

    • moduleAddress: string

      The address of the module containing the entry function.

    • moduleName: string

      The name of the module containing the entry function.

    • functionName: string

      The name of the entry function to fetch the ABI for.

    • aptosConfig: AptosConfig

      The configuration settings for Aptos.

    Returns Promise<EntryFunctionABI>

    An object containing the number of signers, type parameters, and function parameters.

    Error if the ABI cannot be found or if the function is not an entry function.