> For the complete documentation index, see [llms.txt](https://base-tech.gitbook.io/base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://base-tech.gitbook.io/base/nodes-and-miners/miner-costs-and-fees.md).

# Miner costs and fees

Fee and cost estimators can be configured via the config section `[fee_estimation]`:

```
[fee_estimation]
cost_estimator = naive_pessimistic
fee_estimator = fuzzed_weighted_median_fee_rate
fee_rate_fuzzer_fraction = 0.1
fee_rate_window_size = 5
cost_metric = proportion_dot_product
log_error = true
enabled = true
```

Fee and cost estimators observe network transactions to determine viable fee rates and expected execution costs. Configuration fields above allow for the selection of estimators and metrics, with default values currently being the only options. The. `log_error`  field controls whether the INFO logger displays information about cost estimator accuracy as new costs are observed. Setting`enabled = false` turns off the cost estimators. These estimators are not critical components for consensus, but rather tools that miners can use to rank transactions in the mempool or for clients to determine appropriate fee rates before broadcasting transactions.

The `fuzzed_weighted_median_fee_rate` uses a median estimate from a window of the fees paid in the last `fee_rate_window_size` blocks. Estimates are then randomly "fuzzed" using uniform random fuzz of size up to `fee_rate_fuzzer_fraction` of the base estimate.
