LeoDexLeoDex

Crypto swap API

Swap via API

Swap any coin across 40+ chains from your code. No KYC, no account, non-custodial.

Routes through THORChain, Chainflip, NEAR Intents and 9 more

API key

fa57ad8f-880d-4111-86ec-bc32d7e2b4c7

No signup. Send it as the Api-Key header to https://api.leokit.dev

Full guide for agents: swap-api.md

Three calls. Any wallet.

No wallet to connect and nothing to sign. You send the funds yourself.

  1. 1GET /quote-deposit

    Get a quote

    Pick two assets and an amount. You see the price and fees before anything moves.

  2. 2POST /deposit-address

    Send to the deposit address

    Ask for an address, then send the exact amount to it from any wallet before it expires (at least 20 minutes).

  3. 3POST /status

    Track it

    Check every 10 seconds until it says success. If it fails, the provider refunds your refund address.

Step 1: get a quote. Safe to run as is.

curl -s "https://api.leokit.dev/quote-deposit?from_asset=BTC.BTC&to_asset=ETH.ETH&amount=0.01&slippage_bps=300" -H "Api-Key: fa57ad8f-880d-4111-86ec-bc32d7e2b4c7" \
  | jq 'if .quotes then (.quote_id as $id | ([.quotes[] | select(.smart_recommended)] + .quotes)[0] | {quote_id: $id, protocol, amount_out: ((.data.expected_amount_out | tonumber) / pow(10; .data.out_asset_decimal)), fees_usd: .totalFeesUsd}) else . end'

Needs jq to print the pick. Without jq, run only the curl line and drop the trailing \.

Steps 2 and 3: deposit and track. Replace the capitalised placeholders first.

curl -s "https://api.leokit.dev/deposit-address" \
  -H "Api-Key: fa57ad8f-880d-4111-86ec-bc32d7e2b4c7" -H "Content-Type: application/json" \
  -d '{"quote_id":"QUOTE_ID_FROM_STEP_1","from_address":"YOUR_BTC_REFUND_ADDRESS","to_address":"YOUR_ETH_ADDRESS"}'

curl -s "https://api.leokit.dev/status" \
  -H "Api-Key: fa57ad8f-880d-4111-86ec-bc32d7e2b4c7" -H "Content-Type: application/json" \
  -d '{"quote_id":"QUOTE_ID_FROM_STEP_1"}'

Every route, errors and limits: swap-api.md

40+ chains. One key.

Native Bitcoin, Ethereum, Solana, Zcash, XRP, TRON, Dogecoin, Litecoin and more. GET /assets lists every asset id.

  • BitcoinBitcoin
  • EthereumEthereum
  • SolanaSolana
  • ZcashZcash
  • BaseBase
  • ArbitrumArbitrum
  • BNB ChainBNB Chain
  • AvalancheAvalanche
  • TRONTRON
  • XRP LedgerXRP Ledger
  • LitecoinLitecoin
  • DogecoinDogecoin
  • NEARNEAR
  • And more

0.45%

Per swap, any size. The same as leodex.io.

0.02% on stablecoin and same-asset swaps

12 protocols

GET /quote compares the providers leodex.io uses (Chainflip, NEAR Intents, Relay, THORChain, MAYAChain and more) and returns the best offer first.

No account

One public key. No signup, no wallet to connect.

Works right away

Refunds go to you

If a swap fails, the provider returns your funds to your refund address. LeoDex never holds them.

For AI agents and bots

Paste one prompt into any AI agent. It gets a live quote, asks you to confirm, then gives you the address to send to. It never asks for your keys.

No MCP server needed. The prompt points your agent at swap-api.md.

  • Gets a live quote first.
  • Shows you the quote and waits for your yes before it creates a deposit address.
  • Never guesses an address. It asks you.
  • Never asks for your keys. You send the funds yourself.
Read swap-api.md
Your agentExample run

Swap 0.01 BTC to ETH. Send it to 0x8f3…c21, refunds to bc1q…7x4.

GET /quote-deposit
0.01 BTC →about 0.3412 ETHChainflip has the best rate, after the 0.45% fee. Create the deposit address?

Yes

POST /deposit-address

Send 0.01 BTC from any wallet

POST /statussuccess

About 0.3410 ETH arrived.

12 protocols. One quote.

GET /quote compares all 12; the three-call deposit flow uses Chainflip, NEAR Intents, Relay and BOB.

Questions

Is there a free crypto swap API?

Yes. The key on this page is free for everyone, with no signup. You only pay the swap fee shown in each quote: 0.45% on most swaps, 0.02% on stablecoin-to-stablecoin and same-asset swaps.

How do I get an API key?

Copy the public key at the top of this page and send it as the Api-Key header. There's no signup and no account. Go to the key.

Does the LeoDex Swap API require KYC or an account?

No. No KYC, no sign-up and no account. The free public key is on this page. Prefer to swap in the app? See no-KYC swaps on leodex.io.

Is the LeoDex Swap API self-custodial?

Yes. You keep your own keys, and every swap goes from your wallet, through the swap protocol, to your own address. LeoDex never holds your funds.

How do I swap Bitcoin to Ethereum with an API?

Call GET /quote-deposit with from_asset=BTC.BTC, to_asset=ETH.ETH and an amount. Then POST /deposit-address with the quote_id and your addresses, and send the BTC to the address it returns. POST /status tells you when the ETH has arrived.

What happens if a swap fails?

The provider refunds to the from_address you gave, and /status shows refunded.

Which coins and chains can I swap?

40+ chains, the same as leodex.io: Bitcoin, Ethereum, Solana, Zcash, Base, Arbitrum, BNB Chain, Avalanche, TRON, XRP, Litecoin, Dogecoin, NEAR and more. The deposit flow uses Chainflip, NEAR Intents, Relay and BOB. THORChain and Maya routes use wallet mode. GET /assets lists every asset id.

Can my AI agent use it?

Yes. Paste the prompt from this page, or point your agent at leodex.io/swap-api.md. It gets a live quote and asks you to confirm before creating a deposit address, and it never asks for your keys.

Is there an MCP server?

No. Any agent that can make HTTP requests can use the API. Paste the prompt from this page, or point your agent at leodex.io/swap-api.md.

Can I call it from a browser?

Yes. The API allows cross-origin requests, so a web page can call it with the public key.

Can I use it in a Telegram bot?

Yes. Your bot gets a quote, asks for a deposit address, shows it to the user, then checks /status until the swap is done.

Do I need my own THORChain, Chainflip or NEAR Intents keys?

No. The one public key covers every route.

Do I pay per request?

No. There's no charge per call. You pay only the swap fee shown in each quote.

Are there rate limits?

Yes, fair-use limits per visitor. A 429 tells you how many seconds to wait (retry_after_seconds, also sent as Retry-After). Wait, then retry.

Go further

OpenAPI 3.1: Import it into Postman, Insomnia or Bruno.

Run by LeoDex, routing swaps since April 2024. Swap API live since 5 November 2026. Updated 6 November 2026.

  1. 1Non-custodial: you send funds straight to the swap provider. LeoDex never holds them.
  2. 2Don't use this key if you are a sanctioned person or in a sanctioned jurisdiction, or to move proceeds of crime.
  3. 3Providers may screen addresses and refuse or refund swaps.
  4. 4No load testing or limit evasion. We may rotate the key at any time; this page always shows the current one.
  5. 5We don't log IP addresses.