Function estimateContractDeploy

  • Deprecated

    Use the new estimateTransaction function insterad.

    Estimate the total transaction fee in microstacks for a contract deploy

    Returns

    a promise that resolves to number of microstacks per byte

    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>

Generated using TypeDoc