API Integration
Overview
Layerswap API is set to enable fast and reliable crypto token swaps across networks
Layerswap handles millions of dollars in transactions every day across multiple networks. We ensure quick and reliable crypto transfers, giving the freedom to move crypto anywhere.
Quickstart
Get Routes
Get supported sources/networks, available routes and swap fees.
Create Swap
Create Swap using the Layerswap API.
Transaction
Layerswap will monitor the source network for a transaction and will try to match it with the corresponding swap
Match
Once the transaction is matched and added to the swap, Layerswap will initiate a counterparty transaction to the destination_address
Status (Optional)
Poll via Get Swap endpoint to see if the matching transaction Input was added to the swap
Webhook (Optional)
If the webhook is configured, Layerswap will deliver a swap status update notification to the partner-specified URL