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

# Block Size

## Contents

* [Block Size (block\_size)](https://kb.talostrading.com/coinmetrics/network-data/network-data-overview/kri/block-size.md#block_size)

## Block Size

**Definition**

A block's size in bytes

**Dictionary**

| Name | MetricID | Unit | Interval |
| - | - | - | - |
| Block Size | block\_size | bytes | 1b |

**Methodology**

The most recent block is evaluated and the total size of that block is computed in bytes.

**Available Assets**

Bitcoin (BTC), Ethereum (ETH)

## API Endpoints

Block Size metrics can be accessed using these endpoints:

* `timeseries/asset-metrics`

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