> For the complete documentation index, see [llms.txt](https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/home/universal-search/transaction-profile/sandwich-transaction.md).

# Sandwich Transaction

The image below displays the page for a sandwich transaction. The first section, Summary, includes details such as the address, contract, profit, cost, and revenue for this specific transaction.     &#x20;

The subsequent section is a token flow chart, which displays the flow of different tokens and illustrates the calculation process of the transaction's profit and loss. Unlike the arbitrage transaction, this section separately shows the flow of tokens and profit and loss calculation for both the attacker and the victim.

<figure><img src="/files/srUCnw9PVBdAKFdrK8kq" alt=""><figcaption></figcaption></figure>

<figure><img src="https://eigenphi.feishu.cn/space/api/box/stream/download/asynccode/?code=MDkzZjkzMDkzNzYwZDcyYzUxOTBhN2IxODUxNmJmNDVfQVhEM3o1SUkyMTJHR2Q1aXVqRnJoWm5rNmx0UkdwTVlfVG9rZW46Ym94Y25HZVBXc0VFRW5FbjNMb2ZqR29Xd0pnXzE2NzQwMDQzMTA6MTY3NDAwNzkxMF9WNA" alt=""><figcaption></figcaption></figure>


---

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

```
GET https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/home/universal-search/transaction-profile/sandwich-transaction.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.
