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

# Swaps

> Initia blockchain token swap transactions data

export const TableSample = ({tableName, tableSchema}) => <>
    <div className="hidden dark:block">
      <iframe src={`https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=${tableSchema}&table_name_t6f0df=${tableName}&darkMode=true`} style={{
  width: '100%',
  height: '500px',
  border: 'none',
  marginTop: '10px'
}} />
    </div>
    <div className="dark:hidden">
      <iframe src={`https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=${tableSchema}&table_name_t6f0df=${tableName}`} style={{
  width: '100%',
  height: '500px',
  border: 'none',
  marginTop: '10px'
}} />
    </div>
  </>;

# Table Description

This table contains data about token swap transactions in the Initia blockchain, including swap details, token pairs, and execution status.

## Column Descriptions

| Column name | Data Type | Description |
| - | - | - |
| **block\_date** | date | The date of the block. |
| **block\_height** | bigint | The height of the block where the swap occurred. |
| **block\_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated. |
| **tx\_id** | varchar | The unique ID of the transaction. |
| **tx\_index** | bigint | The index of the transaction in the block. |
| **message\_index** | bigint | The index of the message in the transaction. |
| **event\_index** | bigint | The index of the event in the message. |
| **action\_index** | bigint | The index of the action in the event. |
| **sender** | varchar | The address of the sender. |
| **token\_amount\_in** | decimal(38, 0) | The amount of tokens swapped in. |
| **token\_denom\_in** | varchar | The denomination of the token swapped in. |
| **token\_amount\_out** | decimal(38, 0) | The amount of tokens swapped out. |
| **token\_denom\_out** | varchar | The denomination of the token swapped out. |
| **routes** | varchar | The routes used for the swap. |
| **fees** | varchar | The fees associated with the swap. |
| **updated\_at** | timestamp(3) with time zone | Timestamp of when the record was last updated. |
| **ingested\_at** | timestamp(3) with time zone | Timestamp of when the record was ingested into Dune. |

## Table Sample

<TableSample tableSchema="initia" tableName="swaps" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.