> For the complete documentation index, see [llms.txt](https://docs.heaa.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heaa.xyz/operations-flows/private-swap-via-nlp.md).

# Private Swap via NLP

## Private Swap with Natural Language

This is HEAA Dark Pool's most powerful feature: sell any token and have the proceeds delivered privately to a wallet — all from a single plain-language command.

### The idea

Instead of manually swapping, wrapping, shielding, and sending, you just describe what you want in the private-swap desk:

> *sell all of my BONK privately to \<wallet>*

The dApp reads your intent, figures out the token and amounts, and runs every step in order. You approve, and it executes.

### What you can say

The desk understands commands like:

* *sell 1000 BONK to \<wallet>*
* *sell all of my RUSH to \<wallet>*
* *privately send 50 USDC to \<wallet>*

You can refer to a token by its **ticker** (BONK), and you can use **all** to mean your entire balance of that token.

### How it identifies the token

Because your wallet is connected, the desk looks at the tokens you actually hold and matches your request against them. Say "sell my RUSH" and it finds RUSH among your holdings and uses it.

If a token isn't recognized by ticker, you can paste its **contract address** directly and the desk will resolve it. This means you can sell essentially any token, even brand-new ones, by pasting the address.

### What happens under the hood

When you sell a token privately, the desk runs the full sequence for you:

1. **Checks the recipient** has an encrypted account (so the funds can land privately).
2. **Sells** your token for SOL.
3. **Moves the proceeds into privacy** inside the dark pool.
4. **Delivers privately** to the recipient's encrypted account.

You approve the steps that need signing; the desk handles the orchestration. The result: your token is sold and the value arrives privately at the destination, with no public link tying you to the recipient.\ <br>

### Supported token types

The private swap supports both standard SPL tokens and Token 2022 tokens. When it reads the tokens you hold, it checks both token standards, so newer Token 2022 assets (including many recently launched tokens) are recognized and sellable just like standard SPL tokens. Whether you refer to a token by ticker or paste its contract address, both standards are handled.

### Sending an existing private balance

If you already hold a private (encrypted) balance of SOL and just want to send it, the desk sends it directly from your encrypted balance — no swapping or re-shielding needed. It always takes the shortest path.

### Live feedback

As the swap runs, the desk shows each step as it happens — quoting, selling, moving into privacy, delivering — so you always know exactly where things stand. If anything goes wrong, your funds stay safe and you're told what happened.
