> ## 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.

# Test Stellar Classic Assets

> Getting test tokens from the random_tokens API endpoint and testing asset wrapping on testnet.

> [!NOTE]
>
> This flow is testnet only. The random tokens endpoint hands out throwaway test assets, so nothing here involves real funds.

Experimenting with Stellar Classic assets on the Soroswap testnet is straightforward. Our API endpoint `/api/random_tokens` provides you with a variety of test tokens, including Stellar Classic assets that can be wrapped and used by Soroban contracts.

## Accessing Test Tokens

To access the test tokens, follow these steps:

1. Navigate to the API endpoint for random tokens: `https://api.soroswap.finance/api/random_tokens`
2. The API will return a JSON object containing an array of tokens indexed by network. Tokens with only the `asset` and `symbol` keys are Stellar Classic assets, whereas Soroban tokens will have additional information such as `address`, `name`, and `decimals`. To test remember to select the tokens from the network you are on.

Example response from the API:

```json theme={null}
{
  "tokens": [
    // Soroban tokens with detailed information
    {
      "address": "CANYI627Y23JOJKXWMRSRIJLWUFBW5YPFMHGBMEX5A4OEH6QJYYSDVMS",
      "name": "axlnia",
      "symbol": "AXLN",
      "logoURI": "",
      "decimals": 7
    },
    // Stellar Classic assets with just asset code and issuer
    {
      "asset": "JAMN:GAYIZTTI7QKLRKA5GXH5OFFCW3QLU4LNSN5N3XIYXB4P56HHBIXC73X6",
      "symbol": "JAMN"
    }
    // ... more tokens
  ]
}
```

## Testing Wrapping Functionality

To test the wrapping functionality with Stellar Classic assets:

1. From the API's response, copy a Stellar Classic asset in the format `CODE:ISSUER`.
2. Go to the Soroswap testnet interface.
3. Paste the copied `CODE:ISSUER` into the search input from the Swap or Add liquidity pages, and select the asset from the results.
4. The interface will recognize that the asset is a Stellar Classic asset and offer you the option to wrap it so Soroban contracts can use it.

![](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)

5. Click on the asset, and a wrapping modal will appear, guiding you through the wrapping process.

![](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)

6. Once you initiate the wrapping process, you will be prompted to sign the transaction with your wallet.

After wrapping, the asset will be available in your Soroswap testnet account, ready for trading or adding to liquidity pools. It is still the same asset, now reachable through its Stellar Asset Contract, all within the safety of the testnet environment.

Testing Stellar Classic assets on Soroswap testnet is not only a valuable step for ensuring your assets are ready for live trading but also provides a risk-free way to familiarize yourself with the wrapping process and the broader Soroban ecosystem.


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