Test Stellar Classic Assets
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 within the Soroban network.
Accessing Test Tokens
To access the test tokens, follow these steps:
Navigate to the API endpoint for random tokens:
In a local enviroment:
http://localhost:8010/api/random_tokens
In production/testnet:
https://api.soroswap.finance/api/random_tokens
The API will return a JSON object containing an array of tokens indexed by network. Tokens with only the
asset
andsymbol
keys are Stellar Classic assets, whereas Soroban tokens will have additional information such asaddress
,name
, anddecimals
. To test remember to select the tokens from the network you are on.
Example response from the API:
Testing Wrapping Functionality
To test the wrapping functionality with Stellar Classic assets:
From the API's response, copy a Stellar Classic asset in the format
CODE:ISSUER
.Go to the Soroswap testnet interface.
Paste the copied
CODE:ISSUER
into the search input from the Swap or Add liquidity pages, and select the asset from the results.The interface will recognize that the asset is a Stellar Classic asset and offer you the option to wrap it for use on the Soroban network.
Click on the asset, and a wrapping modal will appear, guiding you through the wrapping process.
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. This process allows you to interact with the asset as if it were native to the Soroban network, 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.
Last updated