In order to initiate the process of bridging assets across blockchains, CEXes, and fiat, a Swap should be created. Swap has all the necessary information required to be able to process transfers from the source to the destination.
POST
https://api.layerswap.io/api/swaps
Create swap
X-LS-APIKEY*
String
Content-Type*
application/json
destination*
String
source*
String
amount*
Number
The predefined amount. Note that this is NOT the final amount sent by the user since the user can specify another amount while transferring.
source_asset*
String
destination_address*
String
The destination network address, where the user will receive the funds.
refuel*
Bool
If set to true, the user will receive an additional refuel transaction in the native currency to the specified destination_address.
reference_id
String
Partner specified ID that could be used for the future reference to retrieve the swap.
destination_asset
String
API Key retrieved from
The supported blockchain network name, where the funds should be sent by the user.
The supported blockchain network name, where the funds should be sent by the user.
The swap currency name. .
The swap currency name. .