Comment on page
Quickstart
A simple integration workflow:
- Layerswap will monitor the source network for a transaction and will try to match it with the corresponding swap
- Once the transaction is matched and added to the swap, Layerswap will initiate a counterparty transaction to the
destination_address
- (Optionally) Poll via Get Swap endpoint to see if the matching transaction Input was added to the swap
- If the webhook is configured, Layerswap will deliver a swap status update notification to the partner-specified URL
Postman Collection:
https://github.com/layerswap/layerswap-sdk-starter-kit/blob/main/postman_collection.json
End-to-End Backend + Frontend Integration:
Swagger docs:
curl -X 'GET' \
'https://api.layerswap.io/api/available_networks' \
-H 'accept: application/json'
curl --location 'https://api.layerswap.io/api/swap' \
--header 'X-LS-APIKEY: {YOUR_APP_APIKEY}' \
--header 'Content-Type: application/json' \
--data '{
"source": "ETHEREUM_MAINNET",
"destination": "IMX_MAINNET",
"amount": 0.001,
"asset": "ETH",
"source_address": "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990",
"destination_address": "0xe688b84b23f322a994A53dbF8E15FA82CDB71127",
"refuel": false,
"reference_id": "1"
}'
Last modified 30d ago