Layerswap API
Ask or search…
Comment on page


A simple integration workflow:
  • Create Swap using the Layerswap API
  • Prepare transaction and initiate it in the source network
  • 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

Starter Kit

Postman Collection:
Swagger docs:

Examples to get started

Get Available Networks

curl -X 'GET' \
'' \
-H 'accept: application/json'

Create Swap

curl --location '' \
--header 'Content-Type: application/json' \
--data '{
"destination": "IMX_MAINNET",
"amount": 0.001,
"asset": "ETH",
"source_address": "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990",
"destination_address": "0xe688b84b23f322a994A53dbF8E15FA82CDB71127",
"refuel": false,
"reference_id": "1"
Last modified 30d ago