Testing your integration
The testnet environment integrates with contracts deployed to testnets. Using this environment is great for local development and testing. You can use all of the features of the widget, without needing to use real funds.
Testnet API URL https://swap-testnet.dev.swing.xyz/v0/transfer/
The testnet integrations are experimental and might have functional or liquidity issues. This does not reflect the performance on the mainnet.
Testnet implementation is only available on our testnet API. Make sure to change the request URL to the Testnet URL to get testnet routes. Testnet transfers work exactly the same way as the maintet transfers. To learn how to request a quote and send a transaction visit this API guide.
Suggested routes
The testnet implementation typically has liquidity challenges and fewer tokens than the mainnet version. Below is a list of confirmed routes available on testnets.
Cross-Chain Transfer
Celer bridge testnet has been integrated to offer cross-chain token transfers on the testnet chains.
USDT on Goerli Testnet to USDT on Fantom Testnet via Celer Bridge
Your quote request would look like this:
Same-Chain Swaps
Goerli swaps via Swing Aggregator (Uniswap V2). Perform swap transactions between any of the supported tokens on Goerli Testnet:
- ETH (0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6)
- USDC (0x07865c6e87b9f70255377e024ace6630c1eaa37f)
- USDT (0xf4b2cbc3ba04c478f0dc824f4806ac39982dce73)
Your quote request would look like this: