@aptos-labs/ts-sdk - v3.1.1
    Preparing search index...

    Function findFirstNonSignerArg

    • Finds the index of the first non-signer argument in the function ABI parameters.

      A function is often defined with a signer or &signer arguments at the start, which are filled in by signatures and not by the caller. This function helps identify the position of the first argument that can be provided by the caller, allowing for easier handling of function parameters.

      Parameters

      • functionAbi: MoveFunction

        The ABI of the function to analyze.

      Returns number

      The index of the first non-signer argument, or the length of the parameters array if none are found.