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

# Traces

### Table Details

| Property            | Value                                                    |
| ------------------- | -------------------------------------------------------- |
| Table Name          | `starknet.raw.traces`                                    |
| Table Status        | Production-Ready                                         |
| Unique Key          | `block_timestamp`, `trace_id`                            |
| Clustering Key(s)   | `to_date("block_timestamp")`                             |
| Search Optimization | `transaction_hash`, `caller_address`, `contract_address` |

### Table Columns

| Column Name               | Data Type         | Description                                                                                                                                                                               |
| ------------------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| call\_type                | VARCHAR(16777216) | [The type of method such as `call`, `delegatecall`, `staticcall`. Learn more here.](https://medium.com/coinmonks/delegatecall-calling-another-contract-function-in-solidity-b579f804178c) |
| caller\_address           | VARCHAR(16777216) | The address of the account or contract that initiated this call.                                                                                                                          |
| class\_hash               | VARCHAR(16777216) | The hash of the contract class being called, if applicable.                                                                                                                               |
| contract\_address         | VARCHAR(16777216) | The address of the contract being called.                                                                                                                                                 |
| entry\_point\_type        | VARCHAR(16777216) | The type of entry point (e.g., 'EXTERNAL', 'CONSTRUCTOR', 'L1\_HANDLER').                                                                                                                 |
| entry\_point\_selector    | VARCHAR(16777216) | The selector of the entry point function being called.                                                                                                                                    |
| calldata                  | VARIANT           | The calldata passed to this function call.                                                                                                                                                |
| result                    | VARIANT           | The return value of this function call.                                                                                                                                                   |
| messages                  | VARIANT           | Array of messages sent during this call.                                                                                                                                                  |
| events                    | VARIANT           | Array of events emitted during this call.                                                                                                                                                 |
| trace\_address            | VARCHAR(16777216) | The address of the trace within the call graph.                                                                                                                                           |
| subtrace\_count           | NUMBER(38,0)      | Number of subtraces (nested calls) within this trace.                                                                                                                                     |
| storage\_diff\_count      | NUMBER(38,0)      | Number of storage changes made during this call.                                                                                                                                          |
| is\_reverted              | BOOLEAN           | Whether this call was reverted.                                                                                                                                                           |
| revert\_reason            | VARCHAR(16777216) | The reason for the revert, if applicable.                                                                                                                                                 |
| l1\_data\_gas             | NUMBER(38,0)      | The L1 data gas consumed by this call.                                                                                                                                                    |
| l1\_gas                   | NUMBER(38,0)      | The L1 gas consumed by this call.                                                                                                                                                         |
| l2\_gas                   | NUMBER(38,0)      | The L2 gas consumed by this call.                                                                                                                                                         |
| fee\_transfer\_invocation | VARIANT           | Data related to fee transfer invocation, if applicable.                                                                                                                                   |
| validate\_invocation      | VARIANT           | Data related to validation invocation, if applicable.                                                                                                                                     |
| constructor\_invocation   | VARIANT           | Data related to constructor invocation, if applicable.                                                                                                                                    |
| function\_invocation      | VARIANT           | Data related to function invocation, if applicable.                                                                                                                                       |
| state\_diff               | VARIANT           | Changes to the state made during this call.                                                                                                                                               |
| block\_number             | NUMBER(38,0)      | The length of the chain, in blocks.                                                                                                                                                       |
| block\_timestamp          | TIMESTAMP\_NTZ(9) | The time when the block that contains this trace was included on the blockchain.                                                                                                          |
| block\_hash               | VARCHAR(16777216) | Unique identifier of the block that includes this trace.                                                                                                                                  |
| transaction\_hash         | VARCHAR(16777216) | Unique identifier of the transaction that this trace belongs to.                                                                                                                          |
| transaction\_index        | NUMBER(38,0)      | The position of this transaction in the block that it belongs to. The first transaction has index 0.                                                                                      |
| transaction\_type         | VARCHAR(16777216) | The type of transaction that contained this trace.                                                                                                                                        |
| trace\_id                 | VARCHAR(16777216) | Unique identifier for this trace. Generated by combining the `trace_type`, `transaction_hash`, and `trace_address`.                                                                       |
| \_created\_at             | TIMESTAMP\_NTZ(9) | Timestamp of the entry creation.                                                                                                                                                          |
| \_updated\_at             | TIMESTAMP\_NTZ(9) | Timestamp of the entry update.                                                                                                                                                            |

### Related Docs

* [EVM Raw Traces](/historical-data/supported-blockchains/evm/core-schemas/raw/traces)
