# Wrapping CATs

<figure><img src="/files/2KGR1NGTnf6550bQFCNH" alt=""><figcaption><p>Overview of the Chia-side transaction that initiates CAT wrapping, along with steps.</p></figcaption></figure>

To wrap CATs, they first need to be locked into vault coins. The 'CAT Locker' puzzle asserts the creation of a new vault coin and then creates a message to the WrappedCAT contract. The creation of the coin is done by asserting an announcement from the settlement payments puzzle, which also powers Chia offers.

On the EVM side, the user has to simply relay the message by calling the `receiveMessage` function on the `Portal` contract, which will transmit message contents and other information to the `WrappedCAT` contract. The ERC-20 tokens representing the CAT will then be minted to the address specified when bridging was initiated on Chia.

Note that a WrappedCAT contract needs to be deployed and properly initialized on the destination chain before a CAT can be bridged.


---

# 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.warp.green/developers/cat-bridge/wrapping-cats.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.
