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

# stellar.history_contract_events

> Stellar Soroban contract events — events emitted by smart contracts.

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 `stellar.history_contract_events` table captures all smart contract events and traces, with details on contract execution.

## Column Descriptions

| **Column**                         | **Description**                                                                                            | **Type**                    |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------- | --------------------------- |
| **closed\_at\_date**               | The date when the contract event entry was closed.                                                         | date                        |
| **transaction\_hash**              | The hash of the transaction associated with the contract event, in binary format.                          | varbinary                   |
| **transaction\_id**                | The unique identifier for the transaction related to the contract event.                                   | bigint                      |
| **successful**                     | Indicates whether the transaction associated with the contract event was successful.                       | boolean                     |
| **in\_successful\_contract\_call** | Indicates whether the event occurred during a successful contract call.                                    | boolean                     |
| **contract\_id**                   | The unique identifier for the smart contract that emitted the event.                                       | varchar                     |
| **type**                           | The numeric representation of the event type.                                                              | bigint                      |
| **type\_string**                   | The string description of the event type.                                                                  | varchar                     |
| **topics**                         | Encoded topics related to the contract event, typically used for filtering and categorizing events.        | varchar                     |
| **topics\_decoded**                | Human-readable or decoded topics related to the contract event.                                            | varchar                     |
| **data**                           | The data associated with the contract event, often related to the state changes or values in the contract. | varchar                     |
| **data\_decoded**                  | A human-readable or decoded version of the event data.                                                     | varchar                     |
| **contract\_event\_xdr**           | The raw XDR (External Data Representation) format of the contract event.                                   | varchar                     |
| **closed\_at**                     | The timestamp when the contract event entry was closed.                                                    | timestamp(3) with time zone |
| **ledger\_sequence**               | The sequence number of the ledger in which the contract event is included.                                 | bigint                      |
| **updated\_at**                    | The time when the contract event record was last updated.                                                  | timestamp(3) with time zone |
| **ingested\_at**                   | The time when the contract event data was ingested into the system.                                        | timestamp(3) with time zone |

## Table Sample

<TableSample tableSchema="stellar" tableName="history_contract_events" />
