Skip to main content

Fees

Fees​

Contents​

Mempool Fee Sum ​

Definition

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

Dictionary

NameMetricIDUnitInterval
Mempool Fee Summempool_feeNative units1m

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

Embedded content

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

NameMetricIDUnitInterval
Fees entered mempool 1 minutemempool_fee_entered_1mNative units1m

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

Embedded content

Mempool Fees Mean ​

Definition

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

Dictionary

NameMetricIDUnitInterval
Mempool Fees Meanmempool_fee_meanNative units1m

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

Embedded content

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

NameMetricIDUnitInterval
Mean Fees entered mempool 1 minutemempool_fee_mean_entered_1mNative units1m

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

Embedded content

Mempool Fees Median ​

Definition

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

Dictionary

NameMetricIDUnitInterval
Mempool Fees Medianmempool_fee_medianNative units1m

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

Embedded content

API Endpoints​

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

GET /timeseries/asset-metrics

Asset metrics

View endpoint and parameters

openapi.yaml

Shell
curl --compressed "https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=mempool_fee&assets=btc&frequency=1m&pretty=true&api_key=<your_key>"
Python
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)
Python Client
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()
)