Skip to main content
Add cross-chain swaps to your wallet or app in minutes.

1. Get Your API Key

Log in to the LeoKit DashboardAPI Keys → Create New Key. Copy the key and keep it secure — you’ll use it in every request.

2. Fetch a Quote

Call the /quote endpoint to get the best routes across all protocols.
curl -H "Api-Key: YOUR_API_KEY" \
  "https://api.leokit.dev/quote?from_asset=ETH.ETH&to_asset=BTC.BTC&amount=1000000000000000000&origin=0x0000000000000000000000000000000000000000&destination=bc1q00000000000000000000000000000000000000"
See full details in Get Quote

3. Display the QuoteParse the response and show users:

  • Expected output amount
  • Route (e.g., “via THORChain”)
  • Your fee (added on top)
Use the quote with the highest expectedAmountOutNum or preferred flags (FASTEST, CHEAPEST).

4. Execute the Swap

When ready, use /swap to perform the transaction. Full details in Generate Deposit and Transaction Status.

Test It Out

Try live swaps powered by LeoKit at LeoDex.io. Questions? Reach out via the landing page.