> ## 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.

# Transaction Feerates

## Contents

* [Block Maximum Feerate (block\_feerate\_max)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-feerates.md#block_feerate_max)
* [Block Mean Feerate (block\_feerate\_mean)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-feerates.md#block_feerate_mean)
* [Block Median Feerate (block\_feerate\_median)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-feerates.md#block_feerate_median)
* [Block Minimum Feerate (block\_feerate\_min)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-feerates.md#block_feerate_min)

## Block Maximum Feerate

**Definition**

A block's maximum transaction feerate. For Bitcoin this is measured in sats/vbyte. For Ethereum this measures the gas price in Gwei

**Dictionary**

<table><thead><tr><th width="180" /><th width="210" /><th width="107" /><th /></tr></thead><tbody><tr><td>Name</td><td>MetricID</td><td>Unit</td><td>Interval</td></tr><tr><td>Block Maximum Feerate</td><td>block\_feerate\_max</td><td>Native feerate</td><td>1 block</td></tr></tbody></table>

**Methodology**

The most recent block is evaluated and the maximum feerate in that block is computed.

**Available Assets**

Bitcoin (BTC), Ethereum (ETH)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block\_feerate\_max\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block_feerate_max\&pretty=true)

## Block Mean Feerate

**Definition**

A block's mean transaction feerate. For Bitcoin this is measured in sats/vbyte. For Ethereum this measures the gas price in Gwei

**Dictionary**

<table><thead><tr><th width="180" /><th width="210" /><th width="107" /><th /></tr></thead><tbody><tr><td>Name</td><td>MetricID</td><td>Unit</td><td>Interval</td></tr><tr><td>Block Mean Feerate</td><td>block\_feerate\_mean</td><td>Native feerate</td><td>1 block</td></tr></tbody></table>

**Methodology**

The most recent block is evaluated and the mean feerate in that block is computed.

**Available Assets**

Bitcoin (BTC), Ethereum (ETH)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block\_feerate\_mean\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block_feerate_mean\&pretty=true)

## Block Median Feerate

**Definition**

A block's median transaction feerate. For Bitcoin this is measured in sats/vbyte. For Ethereum this measures the gas price in Gwei

**Dictionary**

<table><thead><tr><th width="180" /><th width="210" /><th width="107" /><th /></tr></thead><tbody><tr><td>Name</td><td>MetricID</td><td>Unit</td><td>Interval</td></tr><tr><td>Block Median Feerate</td><td>block\_feerate\_median</td><td>Native feerate</td><td>1 block</td></tr></tbody></table>

**Methodology**

The most recent block is evaluated and the median feerate in that block is computed.

**Available Assets**

Bitcoin (BTC), Ethereum (ETH)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block\_feerate\_median\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block_feerate_median\&pretty=true)

## Block Minimum Feerate

**Definition**

A block's minimum transaction feerate. For Bitcoin this is measured in sats/vbyte. For Ethereum this measures the gas price in Gwei

**Dictionary**

<table><thead><tr><th width="180" /><th width="210" /><th width="107" /><th /></tr></thead><tbody><tr><td>Name</td><td>MetricID</td><td>Unit</td><td>Interval</td></tr><tr><td>Block Minimum Feerate</td><td>block\_feerate\_min</td><td>Native feerate</td><td>1 block</td></tr></tbody></table>

**Methodology**

The most recent block is evaluated and the minimum feerate in that block is computed.

**Available Assets**

Bitcoin (BTC), Ethereum (ETH)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block\_feerate\_min\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc,eth\&frequency=1b\&metrics=block_feerate_min\&pretty=true)

## API Endpoints

Transaction Feerate metrics can be accessed using these endpoints:

* `timeseries/asset-metrics`

and by passing in the metric ID's `block_feerate_*` in the `metrics` parameter.

`GET /timeseries/asset-metrics`

> [tab] Shell
>
> ```shell theme={null}
> curl --compressed "https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=block_feerate_max&assets=btc&frequency=1b&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=block_feerate_max&assets=btc&frequency=1b&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="block_feerate_max", 
>         assets="btc",
>     ).to_dataframe()
> )
> ```
