> ## Documentation Index
> Fetch the complete documentation index at: https://kb.talostrading.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fees

## Fees

### Contents

* [Mempool Fee Sum (mempool\_fee)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/fees.md#mempool_fee)
* [Fees entered Mempool 1 minute (mempool\_fee\_entered\_1m)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/fees.md#mempool_fee_entered)
* [Mempool Fees Mean (mempool\_fee\_mean)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/fees.md#mempool_fee_mean)
* [Mean Fees Entered Mempool 1 minute (mempool\_fee\_entered\_1m)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/fees.md#mempool_fee_mean_entered)
* [Mempool Fees Median (mempool\_fee\_median)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/fees.md#mempool_fee_median)

### Mempool Fee Sum

**Definition**

The sum value of all mempool transaction fees at a point in time in native units.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mempool Fee Sum | mempool\_fee | Native units | 1m |

**Methodology**

The mempool is evaluated and all transactions indexed. The value of all transaction fees within these unprocessed transactions is then summed.

**Available Assets**

Bitcoin (BTC)

Sample Query

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc\&frequency=1m\&limit\_per\_asset=1\&metrics=mempool\_fee\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc\&frequency=1m\&limit_per_asset=1\&metrics=mempool_fee\&pretty=true)

## Fees entered Mempool 1 minute

**Definition**

The sum value of all mempool transaction fees for all transactions entering the mempool over the course of a 1-minute aggregation window. The beginning of this time window is noted in the “time” field of the response.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Fees entered mempool 1 minute | mempool\_fee\_entered\_1m | Native units | 1m |

**Methodology**

The mempool is evaluated and the fees attached to all transactions that have been entered (new transactions broadcasted by users) in the previous 1-minute interval are counted.

**Available Assets**

Bitcoin (BTC)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc\&frequency=1m\&limit\_per\_asset=1\&metrics=mempool\_fee\_entered\_1m\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc\&frequency=1m\&limit_per_asset=1\&metrics=mempool_fee_entered_1m\&pretty=true)

## Mempool Fees Mean

**Definition**

The mean value of all mempool transaction fees at a point in time in native units.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mempool Fees Mean | mempool\_fee\_mean | Native units | 1m |

**Methodology**

The mempool is evaluated and all transactions indexed. The mean value of all transaction fees within these unprocessed transactions is then calculated.

**Available Assets**

Bitcoin (BTC)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc\&frequency=1m\&limit\_per\_asset=1\&metrics=mempool\_fee\_mean\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc\&frequency=1m\&limit_per_asset=1\&metrics=mempool_fee_mean\&pretty=true)

## Mean Fees Entered Mempool 1 minute

**Definition**

The mean value of the fees paid for all transactions entering the mempool over the course of a 1-minute aggregation window. The beginning of this time window is noted in the “time” field of the response.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mean Fees entered mempool 1 minute | mempool\_fee\_mean\_entered\_1m | Native units | 1m |

**Methodology**

The mempool is evaluated and the fees attached to all transactions that have been entered (new transactions broadcasted by users) in the previous 1-minute interval are aggregated. The statistical mean of these fees is then calculated.

**Available Assets**

Bitcoin (BTC)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc\&frequency=1m\&limit\_per\_asset=1\&metrics=mempool\_fee\_mean\_entered\_1m\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc\&frequency=1m\&limit_per_asset=1\&metrics=mempool_fee_mean_entered_1m\&pretty=true)

## Mempool Fees Median

**Definition**

The median value of all mempool transaction fees at a point in time in native units.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mempool Fees Median | mempool\_fee\_median | Native units | 1m |

**Methodology**

The mempool is evaluated and all transactions indexed. The median value of all transaction fees within these unprocessed transactions is then calculated.

**Available Assets**

Bitcoin (BTC)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc\&frequency=1m\&limit\_per\_asset=1\&metrics=mempool\_fee\_median\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc\&frequency=1m\&limit_per_asset=1\&metrics=mempool_fee_median\&pretty=true)

## API Endpoints

Fees metrics can be accessed using these endpoints:`timeseries/asset-metrics`and by passing in the metric ID's `mempool_fee*` in the `metrics` parameter.

`GET /timeseries/asset-metrics`

> [tab] Shell
>
> ```shell theme={null}
> curl --compressed "https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=mempool_fee&assets=btc&frequency=1m&pretty=true&api_key=<your_key>"
> ```

> [tab] Python
>
> ```python theme={null}
> import requests
> response = requests.get('https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=mempool_fee&assets=btc&frequency=1m&pretty=true&api_key=<your_key>').json()
> print(response)
> ```

> [tab] Python Client
>
> ```python theme={null}
> from coinmetrics.api_client import CoinMetricsClient
>
> api_key = "<API_KEY>"
> client = CoinMetricsClient(api_key)
>
> print(
>     client.get_asset_metrics(
>         metrics="mempool_fee", 
>         assets="btc",
>     ).to_dataframe()
> )
> ```
