> For the complete documentation index, see [llms.txt](https://docs.strike.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.strike.fun/frontend/overview.md).

# Overview

Strike's web frontend is a trading terminal built with Next.js 16, Tailwind CSS, and shadcn/ui. Dark theme, inspired by Bloomberg and Polymarket.

## Stack

| Component         | Technology                                    |
| ----------------- | --------------------------------------------- |
| Framework         | Next.js 16 (App Router)                       |
| Styling           | Tailwind CSS + shadcn/ui                      |
| Wallet            | RainbowKit + WalletConnect / injected wallets |
| Chain interaction | wagmi v3 + viem v2.45                         |
| Real-time data    | Indexer WebSocket                             |
| Contract ABIs     | Auto-generated from Foundry artifacts         |

> **Note:** Users connect an external or injected wallet through RainbowKit. Transactions are signed by the user wallet; the frontend interacts with contracts through wagmi/viem.

## Pages

| Page          | Route          | Description                                   |
| ------------- | -------------- | --------------------------------------------- |
| Markets       | `/`            | Active markets with volume, spread, countdown |
| Trading       | `/markets/:id` | Full orderbook, order entry, trade history    |
| Portfolio     | `/portfolio`   | Positions, P\&L, bulk claim/redeem            |
| Market Detail | `/markets/:id` | Resolution details, price chart, lifecycle    |

## Key UX Patterns

* **Batch-aware:** countdown timer to next clearing, indicative clearing price computed client-side
* **Transaction toasts:** pending → confirmed → success/error status on all chain interactions
* **Gas guards:** estimated gas shown before confirmation, "insufficient funds" prevention
* **Real-time:** orderbook and trade feed update via WebSocket, no manual refresh needed
* **Mobile-first:** responsive breakpoints, touch-friendly order entry, PWA-ready


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.strike.fun/frontend/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
