> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockdb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Token-to-Token Prices Swap Prints

> Onchain swap execution prices — realized token_in → token_out price & sizes per swap event. 10 EVM chains.

## Overview

* **Dataset ID:** `0302`
* **Table:** `blockdb_evm.b0302_token_to_token_prices_swap_prints_v1`
* **Description:** Executed swap prints (realized token\_in → token\_out price & sizes) per on-chain swap event.
* **Primary key:** `(pool_uid, token_in, token_out, block_number, tx_index, log_index)`
* **API:** [POST /evm/prices/spot/crypto/prints](/api-reference/evm/prices/crypto/prices-spot-prints)
* **CSV Sample:** [Download](https://huggingface.co/datasets/BlockDB/Swap-Prints-Ethereum-And-EVM-Cryptocurrency-Data/resolve/main/data/blockdb_evm.b0302_token_to_token_prices_swap_prints_v1.csv?download=true)
* **JSON Sample:** [Download](https://huggingface.co/datasets/BlockDB/Swap-Prints-Ethereum-And-EVM-Cryptocurrency-Data/resolve/main/data/blockdb_evm.b0302_token_to_token_prices_swap_prints_v1.json?download=true)

## Sample Viewer

<Frame>
  <iframe src="https://huggingface.co/datasets/BlockDB/Swap-Prints-Ethereum-And-EVM-Cryptocurrency-Data/embed/viewer/default/train" frameborder="0" width="100%" height="600px" />
</Frame>

## Columns

| Column                | Type             | Description                                                                                                    |
| --------------------- | ---------------- | -------------------------------------------------------------------------------------------------------------- |
| `pool_uid`            | `BYTEA`          | Pool identifier; FK → `b0211_liquidity_pools_v1.pool_uid`.                                                     |
| `exchange_id`         | `INTEGER`        | Exchange identifier.                                                                                           |
| `type_id`             | `INTEGER`        | Pool type identifier.                                                                                          |
| `block_number`        | `BIGINT`         | Block of the swap event.                                                                                       |
| `block_time`          | `TIMESTAMPTZ`    | Block time.                                                                                                    |
| `tx_index`            | `INTEGER`        | Transaction index in block.                                                                                    |
| `log_index`           | `INTEGER`        | Log index in receipt.                                                                                          |
| `token_in`            | `BYTEA`          | Input token (20B).                                                                                             |
| `token_out`           | `BYTEA`          | Output token (20B).                                                                                            |
| `amount_in_raw`       | `NUMERIC(78,0)`  | Amount of token\_in (raw units).                                                                               |
| `amount_out_raw`      | `NUMERIC(78,0)`  | Amount of token\_out (raw units).                                                                              |
| `exec_price`          | `NUMERIC(78,18)` | Realized price: token\_out per 1 token\_in (decimals-adjusted); nullable for extreme cases per pipeline rules. |
| `_tracing_id`         | `BYTEA`          | BlockDB tracing ID; unique.                                                                                    |
| `_parent_tracing_ids` | `BYTEA[]`        | Parent tracing IDs.                                                                                            |
| `_created_at`         | `TIMESTAMPTZ`    | Record creation time.                                                                                          |
| `_updated_at`         | `TIMESTAMPTZ`    | Record last update time.                                                                                       |

## Related datasets

<CardGroup cols={2}>
  <Card title="OHLC" icon="chart-candlestick" href="/data-catalog/evm/prices/token-to-token-prices-ohlc">
    Time-bucketed bars built from swap activity.
  </Card>

  <Card title="Swap fees" icon="coins" href="/data-catalog/evm/swaps/liquidity-pools-swap-fees">
    Fee accounting for the same swap events.
  </Card>
</CardGroup>
