← Back to all APIs

Swap Create

$0.005

Create a live non-custodial swap order and get the deposit address: send exactly the expected amount there and the payout goes to your address. Paid call — the request itself moves no funds; the swap executes when your deposit confirms.

POST https://x402.freeq.one/tools/swap_create
Try it (x402 payment flow)

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/swap_create \ -H "Content-Type: application/json" \ -d '{"currency_from":"btc:btc","currency_to":"eth:eth","address_to":"0x0000000000000000000000000000000000000000","amount":"0.01","fixed":false,"rate_id":"rate1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c"}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.