Function estimateContractFunctionCall

  • Parameters

    • transaction: StacksTransaction

      the token transfer transaction to estimate fees for

    • Optional network: "mainnet" | "testnet" | "devnet" | "mocknet" | StacksNetwork

      the Stacks network to estimate transaction for

    Returns Promise<bigint>

    a promise that resolves to number of microstacks per byte

    Deprecated

    Use the new estimateTransaction function insterad.

    Estimate the total transaction fee in microstacks for a contract function call

Generated using TypeDoc