Express

POSTDeprecated

Calculate the fee and estimated size in bytes for a Bitcoin transaction

Body Params

object

  • feeRate string or integer
    Custom minimum fee rate in a coin's base unit per kilobyte (or virtual kilobyte)--for example, satoshis per kvByte or microAlgos per kByte. If the applied feeRate does not meet a coin's required minimum transaction fee amount, the minimum is still applied (for example, 1000 sat/kvByte or a flat 1000 microAlgos).
  • nP2shInputs integer
    Number of P2SH (multi-signature) inputs
  • nP2pkhInputs integer
    Number of P2PKH (single-signature) inputs
  • nP2shP2wshInputs integer
    Number of P2SH_P2WSH (wrapped segwit multi-signature) inputs
  • nOutputs integer required
    Number of outputs

Responses

200
OK

Response Body

object

  • size integer
    Estimated size of the transaction in bytes
  • fee integer
    Estimated fee in base units for the transaction
  • feeRate integer
    The fee rate in base units per kB used to estimate the fee for the transaction