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

# Iframe

The CabalSpy Widget visualizes Solana blockchain buy/sell transactions for a token mint address, embedded via an iframe.Iframe Integration<br>

1. **Add Iframe**

   ```html
   <iframe
     src="https://widget.cabalspy.xyz/widget?address=7c5fihdNoqGsDz3Dmp9F96LRqanAaKj79HjsDRNdbonk"
     allow="clipboard-write; clipboard-read"
     width="800"
     height="600"
     frameborder="0"
     style="border: none;"
   ></iframe>
   ```

   * URL: <https://widget.cabalspy.xyz/widget?address={mint\\_address}>
   * Parameters: address (required, 32-44 alphanumeric characters).
   * Attributes: Set width/height; frameborder="0".<br>

**Transaction Display**

* Central Token Node: Circle with token symbol (e.g., $SOL, white text, dark gray background). Click for popup with buy/sell totals (green/red) and PNL.
* Wallet Nodes: Circles in a ring around token, sized by PNL (green border for profit, red for loss). Show profile image or shortened address. Click for popup with buy/sell amounts and PNL.
* Transaction Lines: Curved green lines (buys, token to wallet) or red lines (sells, wallet to token), thickness based on transaction count.
* Leaderboard: Trophy button (top-right) opens a table with wallet names, images, PNL (green/red), and links to CabalSpy.
* Real-Time Updates: New transactions update nodes, lines, and leaderboard dynamically via WebSocket.
* Errors: “No KOLs have invested” or “Error loading data” shown in a centered, semi-transparent black box.<br>

**Notes**

* Responsive, scales with iframe (min 400px, best ≥600px).
* Invalid addresses show error messages.
* Requires Font Awesome for icons.


---

# 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://cabalspy.gitbook.io/cabalspy-docs/widget/iframe.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.
