• Estimate gas required for calling a contract function.

    Parameters

    • __namedParameters: {
          abi: ContractInterface;
          contractAddress: string;
          funcName: string;
          funcParams?: unknown[];
          provider: Provider;
      }
      • abi: ContractInterface
      • contractAddress: string
      • funcName: string
      • Optional funcParams?: unknown[]
      • provider: Provider

    Returns Promise<BigNumber>

    The estimated gas required for the function call.

Generated using TypeDoc