Function estimateTransaction

  • Estimate the total transaction fee in microstacks for a Stacks transaction

    Parameters

    • transactionPayload: Payload
    • Optional estimatedLen: number

      is an optional argument that provides the endpoint with an estimation of the final length (in bytes) of the transaction, including any post-conditions and signatures

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

      the Stacks network to estimate transaction fees for

    Returns Promise<[FeeEstimation, FeeEstimation, FeeEstimation]>

    a promise that resolves to FeeEstimate

Generated using TypeDoc