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

# ton.messages

> TON messages — internal and external messages between accounts.

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

The `ton.messages` table stores message data that is exchanged between smart contracts and users on the TON network. This table is partitioned by block\_date.

## Column Descriptions

| **Column** | **Type** | **Description** |
| - | - | - |
| **block\_time** | timestamp | Timestamp of when the block containing the message was created |
| **block\_date** | date | Date of when the block containing the message was created |
| **tx\_hash** | string | Transaction hash associated with the message |
| **tx\_lt** | bigint | Transaction logical time |
| **tx\_now** | int | Transaction timestamp |
| **msg\_hash** | string | Unique hash of the message |
| **direction** | string | Direction of the message flow |
| **trace\_id** | string | Trace identifier for message tracking |
| **source** | string | Source address of the message |
| **destination** | string | Destination address of the message |
| **value** | bigint | Value transferred in the message |
| **fwd\_fee** | bigint | Forward fee for the message |
| **ihr\_fee** | bigint | IHR (Instant Hypercube Routing) fee |
| **created\_lt** | bigint | Logical time when message was created |
| **created\_at** | bigint | Unix timestamp when message was created |
| **opcode** | int | Operation code of the message |
| **ihr\_disabled** | boolean | Whether IHR is disabled for this message |
| **bounce** | boolean | Whether the message can bounce |
| **bounced** | boolean | Whether the message was bounced |
| **import\_fee** | bigint | Import fee for the message |
| **body\_hash** | string | Hash of the message body |
| **body\_boc** | binary | Binary data of the message body |
| **comment** | string | Human-readable comment attached to the message |
| **init\_state\_hash** | string | Hash of the initial state |
| **init\_state\_boc** | binary | Binary data of the initial state |
| **updated\_at** | timestamp | Last time the record was updated |
| **ingested\_at** | timestamp | Time when the record was ingested |

## Table Sample

<TableSample tableSchema="ton" tableName="messages" />


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