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

# sei.cosmos_message_events

> Message-level events — events emitted by specific transaction messages on Sei.

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

Contains all events and their corresponding attributes partitioned by `message_index`. Events are linked to transactions via column `tx_id`.

<Tip>
  On execution, transactions from Cosmos emit data in two formats:

  * Messages (`sei.cosmos_tx_messages`): These provide a high-level, readable summary of actions, such as "send money" or "execute contract." They are easier to understand and track transaction types.
  * Events (`sei.cosmos_message_events`): These capture detailed, low-level changes at the chain level, including underlying blockchain modifications that may not always be directly related to state changes.
  * Use Messages for a general overview and Events when you need detailed insights. The two tables are complementary.
</Tip>

## 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 message event occurred. |
| **block\_timestamp** | timestamp(3) with time zone | Timestamp when the block was validated.                   |
| **chain\_id**        | varchar                     | The ID of the chain where the message event belongs.      |
| **tx\_id**           | varchar                     | The hash of the transaction containing the message event. |
| **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.                    |
| **event\_type**      | varchar                     | The type of event that was triggered.                     |
| **event\_source**    | varchar                     | The source of the event.                                  |
| **attribute\_key**   | varchar                     | The key of the event attribute.                           |
| **attribute\_value** | varchar                     | The value of the event attribute.                         |
| **attribute\_index** | bigint                      | A unique index for attributes within the event.           |
| **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="sei" tableName="cosmos_message_events" />
