Transaction Fees

Contents

Block Maximum Fees

Definition

Mined block's max transaction fee in native units.

Dictionary

Name

MetricID

Unit

Interval

Block Maximum Fees

block_fee_max

Native Currency

1 block

Methodology

The most recently-mined block is evaluated and the maximum of fees in that block is computed.

Available Assets

Bitcoin (BTC)

Sample Query

Block Mean Fees

Definition

Mined block's mean transaction fee in native units.

Dictionary

Name

MetricID

Unit

Interval

Block Mean Fees

block_fee_mean

Native Currency

1 block

Methodology

The most recently-mined block is evaluated and the mean of fees in that block is computed.

Available Assets

Bitcoin (BTC)

Sample Query

Block Median Fees

Definition

Mined block's median transaction fee in native units.

Dictionary

Name

MetricID

Unit

Interval

Block Median Fees

block_fee_median

Native Currency

1 block

Methodology

The most recently-mined block is evaluated and the median of fees in that block is computed.

Available Assets

Bitcoin (BTC)

Sample Query

Block Minimum Fees

Definition

Mined block's minimum transaction fee in native units.

Dictionary

Name

MetricID

Unit

Interval

Block Minimum Fees

block_fee_min

Native Currency

1 block

Methodology

The most recently-mined block is evaluated and the minimum of fees in that block is computed.

Available Assets

Bitcoin (BTC)

Sample Query

Miner Fees per Block

Definition

The sum of fees paid to miners for the transactions included in each mined block.

Dictionary

NameMetricIDUnitInterval

Miner Fees per block

block_fees

Difficulty

1 block

Methodology

The most recently-mined block is evaluated and the sum of fees in that block is computed.

Available Assets

Bitcoin (BTC), Ethereum (ETH)*

* Historical data covering the pre-merge timeframe only (up to 9/15/2022). With the merge ETH switched from Proof of Work and miners to Proof of Stake and validators meaning the miner fees per block are non-existent post the merge date for Ethereum.

Sample Query

API Endpoints

metrics can be accessed using these endpoints:

  • timeseries/asset-metrics

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

Asset metrics

Returns requested metrics for specified assets. Results for block by block metrics (1b frequency) are ordered by tuple (asset, height, block_hash), all other metrics are ordered by tuple (asset, time). You can change the sorting using sort query parameter. Supported output formats are json (default) and csv, use format query parameter to override it. To fetch the next page of results use next_page_url JSON response field or x-next-page-url CSV HTTP header if present. If multiple metrics are requested in the same time the strict policy for partially available metrics among requested ones is applied:

GEThttps://api.coinmetrics.io/v4/timeseries/asset-metrics
Authorization
Query parameters
Response

Time series of metrics for an asset.

Body
data*any
next_page_tokenNextPageToken (string)

Token of the next page results for a given request.

next_page_urlNextPageUrl (string)

URL of the next page results for a given request.

Request
curl --compressed "https://api.coinmetrics.io/v4/timeseries/asset-metrics?assets=btc&metrics=PriceUSD,FlowInGEMUSD&frequency=1d&pretty=true&api_key=<your_key>"
Response
{
  "next_page_token": "text",
  "next_page_url": "text"
}
curl --compressed "https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=block_fees&assets=btc&pretty=true&api_key=<your_key>"

Last updated