Using information retrieved from the meta, you could implement your own SwapBox including your blockchain and token selector. The next step is to show the preview of the best route possible when the user selects the source and the destination tokens.
// Converting 0.1 BSC BNB to AVAX_CCHAIN USDT.E constquote=awaitrangoClient.quote({ from: {"blockchain":"BSC","symbol":"BNB","address":null }, to: {"blockchain":"AVAX_CCHAIN","symbol":"USDT.E","address":"0xc7198437980c041c805a1edcba50c1ce5db95118" }, amount:"100000000000000000"})
The blockchain and symbol names must be exactly what is fetched from Rango's metadata APIs. Check Metadata and Blockchains Metadata APIs regarding this.
You could call this method periodically to get the updated route before the user confirms the swap.
Asset Format
When dealing with asset formats, it's crucial to distinguish between native and non-native coins. Below is the format you should use for each type:
Native Coins
For native coins, the format is straightforward:
Format:Blockchain.Symbol
Example:BSC.BNB
This denotes the blockchain on which the native coin operates, followed by the symbol of the coin itself.
Non-Native Coins
Non-native coins, which are tokens not originally part of the blockchain's main network, follow a different format: