Skip to main content
Get up and running with cross-chain swaps fast.

1. Get Your API Key

  • Sign up or log in at the LeoKit Dashboard
  • Navigate to API Keys → Create New Key
  • Copy your key (keep it secret!)

2. Make Your First Quote

Use the /quote endpoint to fetch real-time routes:
curl -H "Api-Key: YOUR_API_KEY" \
  "https://api.leokit.dev/quote?from_asset=ETH.ETH&to_asset=BTC.BTC&amount=1000000000000000000"
See full details in Get Quote (./api-reference/endpoints/get-quote).

3. Display & Execute

  • Parse the response for best route (sort by expectedAmountOutNum or flags)
  • Show users the quote with your custom fee applied

4. Set Your Fees & Address to Receive Them

https://leokit.dev/assets/fees-screenshot_1767462365419-Do79Bq68.png To earn on your swaps, use LeoKit’s dashboard to:
  1. Set your fee rate (how much you’ll charge your users)
  2. Set the address(es) you’ll earn fees into