> For the complete documentation index, see [llms.txt](https://selen-ai.gitbook.io/selen-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://selen-ai.gitbook.io/selen-ai/execution-layer.md).

# Execution Layer

The execution layer is optimized for low latency and gas efficiency, ensuring that AI-generated decisions are acted upon swiftly and reliably.

* **WebSocket & RPC Routers**: Handle real-time event ingestion and trade signal dispatch with ultra-low latency, ensuring traders enter positions ahead of slower bots.
* **Gas-Optimized Transaction Builder**: Dynamically constructs transactions based on the latest fee markets and user-defined preferences, balancing speed and cost.

Whether executing a snipe trade, rebalancing a liquidity position, or managing a stop-loss, this layer provides dependable execution in volatile market conditions.
