estimatesmartfee

estimatesmartfee conf_target ( "estimate_mode" )

Estimates the approximate fee per kilobyte needed for a transaction to begin confirmation within conf_target blocks if possible and return the number of blocks for which the estimate is valid. Uses virtual transaction size as defined in BIP 141 (witness data is discounted).

Argument #1 – conf_target

Type: numeric, required

Confirmation target in blocks (1 – 1008)

Argument #2 – estimate_mode

Type: string, optional, default=CONSERVATIVE

Fee Estimate Mode:

Specifies whether to return a more conservative estimate that also takes into account a longer transaction history. A conservative estimate may return a higher fee rate and is more likely to be sufficient for the desired target, but it may not react quickly to short-term fee drops in the market. The mode must be one of the following:

  • "UNSET"
  • "ECONOMICAL"
  • "CONSERVATIVE"

Result

{                   (json object)
  "feerate" : n,    (numeric, optional) estimate fee rate in BTCE/kB (only present if no errors were encountered)
  "errors" : [      (json array, optional) Errors encountered during processing (if there are any)
    "str",          (string) error
    ...
  ],
  "blocks" : n      (numeric) block number where estimate was found
                    The request target will be clamped between 2 and the highest target
                    fee estimation is able to return based on how long it has been running.
                    An error is returned if not enough transactions and blocks
                    have been observed to make an estimate for any number of blocks.
}

Examples

bitcoinevo-cli estimatesmartfee 6