# Real-Time Data

Experience the pulse of DeFi with Lixer's high-fidelity, real-time data pipeline. Our system is engineered from the ground up for sub-second latency, providing you with a live window into market activity across the entire Hyperliquid ecosystem and beyond.

#### Live Swap Monitoring Dashboard

Lixer's analytics dashboard demonstrates the power of the SDK, offering a comprehensive view of live activity:

* **Live Swap Feed:** Watch swap transactions flow onto the blockchain in real-time with under one second of latency.
* **Instant Notifications:** Receive visual and auditory alerts for new swaps, with large transactions highlighted for immediate attention.
* **Detailed Transaction Intel:** Expand any swap to see decoded details: token amounts, dollar values, pool fees, sender/recipient addresses, and gas used.
* **Advanced Filtering:** Dynamically filter the feed by token pair, specific pool address, or transaction size (e.g., show only swaps >$100k).

#### The Goldsky-Powered Pipeline: How Real-Time Data Flows

The seamless experience on the dashboard is powered by a robust, event-driven architecture built on **Goldsky's industry-leading infrastructure**. The following diagram and breakdown illustrate the journey of a swap from the blockchain to your screen:

**Step-by-Step Data Flow:**

1. **Event Emission (HyperEVM):**
   * A user executes a swap on a HyperSwap V3 pool.
   * The pool smart contract emits a `Swap` event as a raw, encoded log.
2. **Real-Time Ingestion (Goldsky Mirror):**
   * **Goldsky's Mirror** pipelines are subscribed to the HyperEVM chain.
   * They ingest new blocks and filter them for logs from predefined HyperSwap pool addresses.
   * Using the pool's ABI, the raw log is **instantly decoded** into structured JSON data.
3. **Data Storage & Triggering (PostgreSQL):**
   * The decoded swap event is streamed into our **managed PostgreSQL database**.
   * A database **trigger** is automatically fired upon the `INSERT` of this new row.
   * This trigger calls a webhook URL on our API server, sending the complete swap data as the payload.
4. **Real-Time Broadcast (Lixer API Server):**
   * Our API server receives the webhook payload from the database.
   * It immediately publishes the new swap event to a **pub/sub channel**.
   * The **WebSocket server**, subscribed to this channel, instantly broadcasts the event as a JSON message to **all connected clients** (like your dashboard or bot).
5. **Client-Side Consumption (SDK & Your App):**
   * Your application, using the Lixer SDK, maintains a persistent WebSocket connection.
   * It receives the broadcasted event and processes it in real-time, updating the UI or executing trading logic.

This architecture ensures **end-to-end latency of less than a second**, making it ideal for the most demanding applications like MEV and arbitrage.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ironjams-organization.gitbook.io/lixer-docs/basics/markdown.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
