# How it Works

## V1  (Legacy)

AnyToAny.io uses [VIA Messaging](/via-omnichain-network/technology-overview.md) to burn and mint an intermediary / utility token, $PAPER between chains.&#x20;

Process Flow:

1. Token A swaps into blockchain native gas coin
2. Blockchain native gas coin swaps into PAPER
3. PAPER is burned on Blockchain A and minted on Blockchain B
4. PAPER on Blockchain B is swapped for the native gas coin on Blockchain B
5. The native gas coin swaps into token B

## V2 Upgrade (Not yet released)

AnyToAny.io uses [VIA Messaging](/via-omnichain-network/technology-overview.md) in conjunction with Circle's [CCTP Network](https://www.circle.com/en/cross-chain-transfer-protocol).

Process Flow:

1. Token A swaps into blockchain native gas coin
2. Blockchain native gas coin swaps into USDC
3. USDC is burned on Blockchain A and minted on Blockchain B
4. USDC on Blockchain B is swapped for the native gas coin on Blockchain B
5. The native gas coin swaps into token B

The entire process, from using USDC on the source chain to receiving the desired tokens on the destination chain is often before you can switch chains in your wallet!

Stay tuned for more information!


---

# 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://docs.vialabs.io/additional-products/anytoany.io/how-it-works.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.
