Function getExecutionCostUsingNode

  • Calculates the cost of signed and not signed transaction execution using node

    Parameters

    • transaction: `tx_${string}`

      Transaction to calculate the cost of

    • node: Node

      Node to use

    • options: { isMined?: boolean } & {
          gasUsed?: number;
          innerTx?: "fee-payer" | "freeloader";
          isInitiator?: boolean;
          queryFee?: string;
      } = {}

      Options

      • OptionalisMined?: boolean

        Is transaction already mined or not

      • OptionalgasUsed?: number
      • OptionalinnerTx?: "fee-payer" | "freeloader"
      • OptionalisInitiator?: boolean
      • OptionalqueryFee?: string

    Returns Promise<bigint>