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

# ERC-8004 Events

> ERC-8004 protocol events on BNB Smart Chain (BSC)

The `bsc.agents.erc8004_events` table contains all decoded ERC-8004 protocol events on BNB Smart Chain (BSC). Each row is a single event — registrations, metadata updates, feedback submissions, revocations, and responses — with event-specific fields in the `extra_fields` VARIANT column.

For full extra\_fields reference and example queries, see the [crosschain ERC-8004 events docs](/historical-data/agents/erc8004/events).

### Table Details

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

### Table Columns

| Column Name                | Data Type         | Description                                                                                                 |
| -------------------------- | ----------------- | ----------------------------------------------------------------------------------------------------------- |
| event\_name                | VARCHAR           | Event type: `Registered`, `URIUpdated`, `MetadataSet`, `NewFeedback`, `FeedbackRevoked`, `ResponseAppended` |
| agent\_id                  | VARCHAR           | Numeric agent NFT ID.                                                                                       |
| chain                      | VARCHAR           | Network name.                                                                                               |
| registry\_type             | VARCHAR           | Registry type: `identity` or `reputation`.                                                                  |
| registry\_address          | VARCHAR           | Registry contract address.                                                                                  |
| registry\_name             | VARCHAR           | Registry name: `IdentityRegistry` or `ReputationRegistry`.                                                  |
| is\_official               | BOOLEAN           | Whether the event is from an official ERC-8004 registry.                                                    |
| extra\_fields              | VARIANT           | Event-specific decoded parameters as JSON.                                                                  |
| block\_timestamp           | TIMESTAMP\_NTZ(9) | The timestamp when the event occurred.                                                                      |
| transaction\_hash          | VARCHAR           | The transaction hash containing this event.                                                                 |
| transaction\_from\_address | VARCHAR           | The address of the transaction signer.                                                                      |
| transaction\_to\_address   | VARCHAR           | The address of the transaction recipient.                                                                   |
| block\_number              | NUMBER(38,0)      | The block number containing this event.                                                                     |
| block\_hash                | VARCHAR           | The hash of the block containing this event.                                                                |
| log\_index                 | NUMBER(38,0)      | The position of the event log within the transaction.                                                       |
| unique\_id                 | VARCHAR           | Unique identifier for the event.                                                                            |
| \_created\_at              | TIMESTAMP\_NTZ(9) | The timestamp when the record was created.                                                                  |
| \_updated\_at              | TIMESTAMP\_NTZ(9) | The timestamp when the record was last updated.                                                             |

### Sample Query

```sql theme={null}
SELECT
    DATE_TRUNC('day', block_timestamp)::DATE AS dt,
    event_name,
    COUNT(*) AS events
FROM bsc.agents.erc8004_events
WHERE block_timestamp >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY ALL
ORDER BY dt, events DESC;
```
