Function estimateContractDeploy

  • 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


    Use the new estimateTransaction function insterad.

    Estimate the total transaction fee in microstacks for a contract deploy

Generated using TypeDoc