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

# Erc8004 Events

### Table Details

| Property          | Value                               |
| ----------------- | ----------------------------------- |
| Table Name        | `x_layer.agents.erc8004_events`     |
| Table Status      | Production-Ready                    |
| Unique Key        | `transaction_hash`, `log_index`     |
| Clustering Key(s) | `block_timestamp::date, event_name` |

### Table Columns

| Column Name                | Data Type         | Description                                                                               |
| -------------------------- | ----------------- | ----------------------------------------------------------------------------------------- |
| event\_name                | VARCHAR(16777216) | The name of the ERC-8004 event (e.g., AgentRegistered, AgentUpdated).                     |
| agent\_id                  | VARCHAR(16777216) | The unique identifier of the agent in the ERC-8004 registry.                              |
| registry\_type             | VARCHAR(16777216) | The type of registry the agent is registered in (e.g., service, tool).                    |
| registry\_address          | VARCHAR(42)       | The contract address of the agent registry.                                               |
| registry\_name             | VARCHAR(16777216) | The display name of the agent registry.                                                   |
| is\_official               | BOOLEAN           | Whether the registry is an officially recognized registry.                                |
| extra\_fields              | VARIANT           | Additional event-specific fields stored as a semi-structured object.                      |
| transaction\_hash          | VARCHAR(66)       | The hash of the transaction containing the event.                                         |
| log\_index                 | NUMBER(38,0)      | The index of the event log within the transaction.                                        |
| block\_timestamp           | TIMESTAMP\_NTZ(9) | The timestamp of the block containing the event.                                          |
| block\_number              | NUMBER(38,0)      | The block number containing the event.                                                    |
| block\_hash                | VARCHAR(66)       | The hash of the block containing the event.                                               |
| transaction\_from\_address | VARCHAR(42)       | The address that initiated the transaction.                                               |
| transaction\_to\_address   | VARCHAR(42)       | The address the transaction was sent to.                                                  |
| unique\_id                 | VARCHAR(32)       | A unique identifier for this event record, derived from transaction\_hash and log\_index. |
| chain                      | VARCHAR(16777216) | The blockchain network identifier.                                                        |
| \_created\_at              | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was created in the database.                                  |
| \_updated\_at              | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was last updated in the database.                             |
