🟧
JS SDK Token Representation
The Symbiosis protocol uses minting/burning mechanisms to implement cross-chain swaps. The detailed explanation of the mechanisms can be found in the document Mint/Burn processes.

Stable cryptocurrency -> sToken

Symbiosis JS SDK allows to get an sToken on a specified network:
1
const synthToken = await symbiosis.getRepresentation(
2
realToken, // for example, USDC on Ethereum
3
chainId // for example, 56 = BSC
4
)
Copied!
In this example, it returns sTokens: sUSDCs on the BSC network.

sToken -> Stable cryptocurrency

There is a reverse operation:
1
const realToken = await symbiosis.getRepresentation(
2
synthToken, // for example, sUSDC on BSC
3
chainId // for example, 1 = Ethereum
4
)
Copied!
In this example, it returns stablecoins: USDCs on the Ethereum network.