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

## Contents

* [Mempool Size (mempool\_size)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-sizes.md#mempool_size)
* [Mempool Size Entered (mempool\_size\_entered)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-sizes.md#mempool_size_entered)
* [Mempool Size Left (mempool\_size\_left\_1m)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-sizes.md#mempool_size_left)
* [Mempool vSize (mempool\_vsize\_entered\_1m)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-sizes.md#mempool_vsize)
* [Mempool vSize Entered (mempool\_vsize)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-sizes.md#mempool_vsize_entered)
* [Mempool vSize Left (mempool\_vsize\_left\_1m)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/transaction-sizes.md#mempool_vsize_left)

## Mempool Size

**Definition**

The total size of all transactions in the mempool, in bytes.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mempool Size | mempool\_size | bytes | 1m |

**Methodology**

The mempool is evaluated and all transactions within are indexed. The size of all transactions is summed.

**Available Assets**

Bitcoin (BTC)

**Sample Query**

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

## Mempool Size Entered

**Definition**

The total size in bytes 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**

<table><thead><tr><th width="162" /><th width="240" /><th /><th /></tr></thead><tbody><tr><td>Name</td><td>MetricID</td><td>Unit</td><td>Interval</td></tr><tr><td>Mempool Size Entered 1m</td><td>mempool\_size\_entered\_1m</td><td>bytes</td><td>1m</td></tr></tbody></table>

**Methodology**

The mempool is evaluated and all transactions within are indexed. The size of all transactions that have entered the mempool in the previous 1-minute window is summed.

**Available Assets**

Bitcoin (BTC)

**Sample Query**

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

## Mempool Size Left

**Definition**

The total size in bytes of all transactions that have left 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**

<table><thead><tr><th width="162" /><th width="240" /><th /><th /></tr></thead><tbody><tr><td>Name</td><td>MetricID</td><td>Unit</td><td>Interval</td></tr><tr><td>Mempool Size Left 1m</td><td>mempool\_size\_left\_1m</td><td>bytes</td><td>1m</td></tr></tbody></table>

**Methodology**

The mempool is evaluated and all transactions within are indexed. The size of all transactions that have left the mempool in the previous 1-minute window is summed.

**Available Assets**

Bitcoin (BTC)

**Sample Query**

[https://api.coinmetrics.io/v4/timeseries/asset-metrics?api\_key=%3Cyour\_key%3E\&assets=btc\&frequency=1m\&metrics=mempool\_size\_left\_1m\&pretty=true](https://api.coinmetrics.io/v4/timeseries/asset-metrics?api_key=%3Cyour_key%3E\&assets=btc\&frequency=1m\&metrics=mempool_size_left_1m\&pretty=true)

## Mempool vSize

**Definition**

The total virtual size (vsize) of all transactions in the mempool, in virtual bytes. [Virtual Size (vsize)](https://en.bitcoin.it/wiki/Weight_units) is a unit used to measure the size of bitcoin transactions after the activation of SegWit.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mempool vsize | mempool\_vsize | Virtual bytes | 1m |

**Methodology**

The mempool is evaluated and all transactions within are indexed. The virtual size of all transactions is 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\_vsize\&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_vsize\&pretty=true)

## Mempool vSize Entered

**Definition**

The total virtual size (vsize) 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. [Virtual Size (vsize)](https://en.bitcoin.it/wiki/Weight_units) is a unit used to measure the size of a bitcoin transaction after the activation of SegWit.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mempool vsize entered 1 minute | mempool\_vsize\_entered\_1m | Virtual bytes | 1m |

**Methodology**

The mempool is evaluated and all transactions within are indexed. The virtual size of all transactions that have entered the mempool in the previous 1-minute window is 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\_vsize\_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_vsize_entered_1m\&pretty=true)

## Mempool vSize Left

**Definition**

The total virtual size (vsize), in bytes, of all transactions that have left 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. [Virtual Size (vsize)](https://en.bitcoin.it/wiki/Weight_units) is a unit used to measure the size of a bitcoin transaction after the activation of SegWit.

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Mempool vsize left 1 minute | mempool\_vsize\_left\_1m | Virtual bytes | 1m |

**Methodology**

The mempool is evaluated and all transactions within are indexed. The virtual size of all transactions that have left the mempool in the previous 1-minute window is 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\_vsize\_left\_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_vsize_left_1m\&pretty=true)

## API Endpoints

metrics can be accessed using these endpoints:

* `timeseries/asset-metrics`

and by passing in the metric ID's `mempool_size*` and `mempool_vsize_*` 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_size&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_size&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_size", 
>         assets="btc",
>     ).to_dataframe()
> )
> ```
