Layerswap Integration Guide

To integrate Layerswap in your wallet or app, direct users to Layerswap and customize the initial values by using query parameters.

Example: Loopring & FTX.COM.

  • sourceExchangeName - Pre-select the source exchange. Available values are at the bottom of the page.

  • destNetwork - Pre-select the destination network(L2, sidechain etc.). Available values are at the bottom of the page.

  • lockAddress = true - To lock the provided address, to not allow user to change it.

  • lockNetwork = true - To lock the provided network.

  • asset - To pre-select the asset. NOTE: available assets depend on the selected network, for example, the asset LRC is only available in LOOPRING network. Avilable values are: ETH, USDC, USDT and LRC.

  • Full template.


Centralized exchange or L2/side-chain integration

If you want Layerswap to integrate your exchange or L2 you can reach out to hi@layerswap.io. Prerequisites are:

  • exchange integration: availability of (free and instant) internal transactions and APIs to fetch deposit/withdrawal history
  • L2 integrations: ability to transfer between accounts.

Wallet Integration Source

If you're integrating Layerswap to your wallet, and want your users to see where their address is coming from, you can reach out to hi@layerswap.io and provide the assets and information shown to the user.

Argent imToken TokenPocket

Available values for the destNetwork parameter

Network NameQuery parameter value
ZkSpaceZKSPACE_MAINNET
Immutable XIMMUTABLEX_MAINNET
LoopringLOOPRING_MAINNET
ArbitrumARBITRUM_MAINNET
Arbitrum NovaARBITRUMNOVA_MAINNET
StarkNetSTARKNET_MAINNET
OptimismOPTIMISM_MAINNET
zkSyncZKSYNC_MAINNET
BobaBOBA_MAINNET

Available values for the sourceExchangeName parameter

Exchange NameQuery parameter value
Bitfinexbitfinex
FTX.COMftxcom
FTX.USftxus
CDC Exchangecryptocom
Blocktaneblocktane
Kucoinkucoin
Krakenkraken
OKXokex
Huobihuobi
Bittrex Globalbittrex
Coinbasecoinbase
Binancebinance