> ## Documentation Index
> Fetch the complete documentation index at: https://docs.soroswap.finance/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Soroswap Aggregator API: base URL https://api.soroswap.finance, pick the network with ?network=mainnet or ?network=testnet (omitted means mainnet).
> Auth: Authorization: Bearer sk_... on every call. Get a key at https://console.soroswap.finance/register. A missing or invalid key returns 401 with code and registerUrl (POST /send returns 403 instead); an expired JWT or a missing role returns 403. Free plan 1 request/s; see https://docs.soroswap.finance/api/plans.md.
> Flow: POST /quote (assetIn, assetOut as C... contract addresses, amount as an integer string in the smallest unit, tradeType, protocols) -> POST /quote/build with the unchanged quote and from -> the user signs the XDR -> POST /send. Build right after quoting: a Soroban XDR is valid for 180 seconds. Submit it as is, never re-simulate it.
> Partner id: every account has one (9 hex chars, permanent). Read partnerId from GET /partner, or in the console at https://console.soroswap.finance under Fees & payouts. The partner fee itself is switched on by Soroswap; see https://docs.soroswap.finance/api/fees.md.
> AI tools: docs MCP at https://docs.soroswap.finance/mcp (claude mcp add --transport http soroswap-docs https://docs.soroswap.finance/mcp), skill with npx skills add https://docs.soroswap.finance. Other clients: https://docs.soroswap.finance/api/build-with-ai.md.
> Units and Stellar pitfalls: https://docs.soroswap.finance/api/stellar-gotchas.md. Errors and retries: https://docs.soroswap.finance/api/errors.md.

# Wrapping Stellar Classic Assets

> Why Stellar Classic assets need a Stellar Asset Contract to work with Soroban, and how to wrap one from Soroswap.

## Understanding the Importance of Wrapping Stellar Assets for Soroban

Soroban is the smart contract environment of Stellar. It is not a separate network: contracts run on Stellar itself, alongside the classic operations that have always existed there. Assets issued the traditional way, often called "Stellar Classic" assets, are not automatically reachable from a smart contract, though. To make one usable by contracts and dApps, it needs a contract interface. This is what "wrapping" means.

### What is Wrapping?

Wrapping deploys a **Stellar Asset Contract** (SAC) for a Stellar Classic asset. The Stellar Asset Contract is a built in contract interface that exposes the **same** asset to Soroban, so a smart contract can hold and move it using the standard token interface.

The important part: this does **not** create a second token, and there is no bridge and no peg. There is one asset with one issuer and one supply. A balance is the same balance whether it is touched by a classic payment or by a contract call, and the trustline rules of the original asset still apply. Wrapping simply gives the existing asset an address that contracts can call.

Wrapping only needs to happen once per asset. If somebody has already deployed the Stellar Asset Contract for an asset, it is already usable, and there is nothing left for you to do.

### Why Wrap Stellar Assets?

#### Seamless Integration

Once the Stellar Asset Contract exists, the asset can be used by smart contracts and dApps the same way any Soroban token can, with no change to how it behaves in classic operations.

#### Trading and Liquidity

Wrapping an asset makes it usable in contract based venues like Soroswap, opening it up to liquidity pools and to new markets.

#### Enhanced Functionality

Contracts can hold, transfer, and program around the asset, which is not possible for an asset that has no contract interface.

### How Does Wrapping Benefit You?

#### Accessibility

Enjoy access to a wider range of tokens and trading pairs on Soroswap, enhancing your trading experience.

#### Efficiency

Execute transactions and smart contract operations with the speed and low cost of Stellar.

#### Opportunity

Participate in the financial services and products being built with Soroban contracts on Stellar.

Wrapping is a simple yet vital step in making Stellar Classic assets available to smart contracts. By wrapping an asset, you are not just preparing it for trading on Soroswap, you are making it usable across everything built on Soroban.

***

## Wrapping Assets Directly on Soroswap

Soroswap simplifies the wrapping process by integrating it directly into the user interface. If you're looking to swap or provide liquidity with a Stellar Classic asset, Soroswap's intuitive search modal will assist you every step of the way.

### Wrapping via the Search Modal

Soroswap's search modal allows you to find your desired token. If you enter a `CODE:ISSUER` combination for a Stellar asset that does not have its Stellar Asset Contract deployed yet:

1. Soroswap will detect this and prompt you with a suggestion to wrap the asset.
2. A modal will appear, presenting you with the option to "Wrap Asset."
3. Upon confirming your choice, you will be prompted to sign the transaction with your wallet.
4. Once signed, the transaction is submitted, and the asset's Stellar Asset Contract is deployed.

![](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/stellar-classic-assets/wrapping/wrapping-process-modal.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=e754ac4ace1733358d48d0fb32dc3a0f)

![](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/stellar-classic-assets/wrapping/wrapping-view.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=ef7bb00b42644ba7967aa865edea063f)

### Post-Wrapping: What’s Next?

After wrapping, the asset will appear in your Soroswap token list, ready to be traded or added to liquidity pools. It is still the same asset it always was, now reachable by contracts as well as by classic operations.

*You will probably be shown this warning view if it is an unknown asset for us* ![](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/stellar-classic-assets/wrapping/warning.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=f368ee2562b2c9c58eab53211fcdfb63)

*If everything goes as expected you should now have your token selected* ![](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/stellar-classic-assets/wrapping/swap-view.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=2cf911bb041c37d5d65dc7fd444906a0)

By integrating asset wrapping into the swapping process, Soroswap ensures that users have a seamless experience, closing the gap between Stellar Classic assets and Soroban contracts. This feature not only enhances the usability of Soroswap but also enriches the overall ecosystem by fostering interoperability and ease of use.

Wrap your Stellar Classic assets on Soroswap today, and unlock the full potential of your trading experience on Stellar.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.