Skip to main content

Transactions

Contents​

Transactions in Block ​

Definition

The count of all transactions within the most recent block processed.

Dictionary

NameMetricIDUnitInterval
Transactions in Blockblock_tx_countCount of transactions1b

Methodology

The most recent block we processed within a 1-minute window is evaluated and the number of transactions within the block are counted. For UTXO based currencies, this includes the coinbase transaction.

Available Assets

Bitcoin (BTC), Ethereum (ETH)

Sample Query

Embedded content

Mempool Transaction Count ​

Definition

The count of all mempool transactions at a point in time.

Dictionary

NameMetricIDUnitInterval
Mempool Transaction Countmempool_countTransaction1m

Methodology

The mempool is evaluated and all transactions indexed. All unprocessed mempool transactions at a point in time are then counted.

Available Assets

Bitcoin (BTC)

Sample Query

Embedded content

Transaction Count Entered Mempool 1 Minute ​

Definition

The count of all transactions that have entered 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
Transaction Count entered mempool 1 minutemempool_count_entered_1mTransaction1m

Methodology

The mempool is evaluated and all transactions that have been entered (new transactions broadcasted by users) since a point in time are counted.

Available Assets

Bitcoin (BTC)

Sample Query

Embedded content

API Endpoints​

Transactions metrics can be accessed using these endpoints:

  • timeseries/asset-metrics

and by passing in the metric ID's block_tx_count* and mempool_count_* 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=block_tx_count&assets=btc&frequency=1b&pretty=true&api_key=<your_key>"
Python
import requests
response = requests.get('https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=block_tx_count&assets=btc&frequency=1b&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="block_tx_count",
assets="btc",
).to_dataframe()
)