# Basic flow

### **Toggle eth\_sign requests**

Turn this on to let dApps request your signature using eth\_sign requests. eth\_sign is an open-ended signing method that lets you sign an arbitrary hash, making it a dangerous phishing risk. Only sign eth\_sign requests if you can read what you are signing and trust the origin of the request.

⚠️ *If this setting is turned off, your MetaMask won’t connect to the Wallet Rescue app. You need to turn on this function manually.* ⚠️

### **Swap Flow**

To perform a swap, select a token you want to sell and a token you want to buy and enter the number of tokens you want to sell. The app will display the current exchange rate for the selected pair.

<figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2FwgZZSV48guG3vNJStpXr%2Fscreensfull.010.jpeg?alt=media&#x26;token=0bbe7ae7-1c7a-4184-a176-519f0e9f47f9" alt=""><figcaption></figcaption></figure>

If you are selling tokens in the app for the first time, you will need to give permission for the protocol to use the token you want to sell. This allows the smart contract to withdraw a specific amount of tokens from your wallet and send another token to your wallet.

<figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2FqIqs3nxdAZVjzh3q4ky8%2F666.001.jpeg?alt=media&#x26;token=9bbd39d3-b9ce-481f-8be8-88b5e1eb494b" alt=""><figcaption></figcaption></figure>

When you sell $BNB or $ETH, there is no need for such approval.&#x20;

<figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2FRjauobL9yuRKHiSIKSdF%2Fscreensfull.011.jpeg?alt=media&#x26;token=c5b87dda-2148-413f-b329-a21250742193" alt=""><figcaption></figcaption></figure>

After all the swap conditions are set, you must sign a swap transaction in MetaMask.

<div><figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2FH5h5TNb5PvmBKB5LKUFr%2Fscreensfull.013.jpeg?alt=media&#x26;token=eb71a593-d9e1-444d-b822-967134e45521" alt=""><figcaption></figcaption></figure> <figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2FzAm5HTrD7fSE4VRWYYfl%2Fscreensfull.012.jpeg?alt=media&#x26;token=bdbee28b-8ce4-4e33-aba9-1415929c98fa" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2F9uPtbgTZyiFUZNMhXu5T%2Fscreensfull.016.jpeg?alt=media&#x26;token=803d352b-9e81-4c65-a5b6-ba8624396fb6" alt=""><figcaption></figcaption></figure>

After signing the swap transaction, it will automatically be sent to the private mempool. You may cancel transaction execution until it is added to the block.

<div><figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2FkI4996YxGbuqLr5uTLhF%2F%D0%91%D0%B5%D0%B7%20%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F.001.jpeg?alt=media&#x26;token=700df738-40ec-4202-a473-39b4f9349a97" alt=""><figcaption></figcaption></figure> <figure><img src="https://3525564716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6O8hzTCYYJcyzhLT0YBA%2Fuploads%2FLWHEgBKggNQBiRmNz6HN%2F%D0%91%D0%B5%D0%B7%20%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F.002.jpeg?alt=media&#x26;token=e0bbc369-80b8-4f44-ad5c-507306aaa9bc" alt=""><figcaption></figcaption></figure></div>

When a transaction is successfully mined, you will receive a message with a transaction ID and a link to it on the network scan.<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://hackless.gitbook.io/hackless-docs/products/anti-sandwich/basic-flow.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.
