Create Swap
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
Headers
X-LS-APIKEY*
String
Content-Type*
application/json
Request Body
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
Raw request
Raw response
Last updated