# Swap Ripper: cross-chain swaps for AI agents > Swap any token across 25+ blockchains (Bitcoin, Ethereum, Solana, Base, Arbitrum, BNB, Tron, NEAR, Zcash, TON, Sui, XRP, Doge and more) in one call. Non-custodial, no API key, no wallet connection: get a quote, receive a one-time deposit address, send funds, done. Powered by NEAR Intents solver network. Automatic refund if a swap can't complete. - Service fee: 0.3%, built into quotes, with volume discounts (0.25% over $1k, 0.15% over $10k). No API key. No sign-up. Non-custodial. - Referral program: pass referrer= on any call and earn 1/3 of the fee on swaps you route. Same price for the user. ## Connect - MCP (Streamable HTTP, no auth): https://swap-ripper.szydlow45.workers.dev/mcp - REST: https://swap-ripper.szydlow45.workers.dev/api/{quote,text,swap,pay,compare,status,prices,tokens,chains,referrals} - OpenAPI: https://swap-ripper.szydlow45.workers.dev/openapi.json - A2A agent card: https://swap-ripper.szydlow45.workers.dev/.well-known/agent.json ## Tools - get_quote: Live price for swapping any token to any token across 25+ chains (BTC, ETH, SOL, Base, Arbitrum, BNB, Tron, NEAR, Zcash, TON, Sui, XRP...). No addresses or keys needed, nothing committed. Includes a price_check against market rates so you can tell if the quote is fair. - create_swap: Lock a quote and get a one-time deposit address. Send exactly `send_exactly` of the source token there and the output lands at `recipient` automatically, usually in under a minute. Non-custodial, no API key, no wallet connection, automatic refund on failure. For EVM sources, `deposit_tx` is a ready-to-sign transaction. - pay_exact: Make sure a recipient gets EXACTLY a set amount (e.g. 10 USDC on Base), paid with whatever token and chain you hold (e.g. SOL on Solana). Ideal for paying invoices, topping up an x402/agent wallet, or funding gas on another chain. Returns the exact amount to send and a deposit address. - create_payment_link: Create a shareable payment link (like an invoice). The payer can pay with ANY token on ANY chain; the recipient receives exactly the token you choose (e.g. 50 USDC on Base). Great for agents that sell services to humans or other agents. No account needed. - refuel_gas: Stuck without gas? Get a small amount of the native gas token (ETH on Base/Arbitrum/Optimism/Ethereum, SOL, BNB, POL, AVAX, TRX, TON, SUI...) delivered to any address, paid with whatever token you hold on any chain. Default $3 worth. - quote_from_text: Get a quote from a plain-English request like '25 USDC on solana to ETH on base' or 'swap 0.1 BTC for SOL'. Same output as get_quote. - referral_stats: See how many swaps and how much volume your referrer account has routed, and estimated earnings. Fees are paid on-chain to your NEAR account automatically. - get_swap_status: Check a swap by deposit address. Set wait_seconds (up to 25) and the server waits for the status to change before answering, so you need fewer calls. Statuses: PENDING_DEPOSIT, PROCESSING, SUCCESS, INCOMPLETE_DEPOSIT, REFUNDED, FAILED. `final=true` means done. - compare_quotes: Quote up to 10 routes in a single call (e.g. pay with USDC on Solana vs USDC on Base vs ETH) and get the best one by USD output. Saves round trips. - get_prices: Free USD prices for tokens across 25+ chains in one call. No API key, no rate-limit sign-up. Filter by symbols (e.g. ['BTC','ETH','SOL']) and/or chain. - search_tokens: Find supported tokens by symbol and/or chain. Returns symbol, chain, asset_id, decimals, contract and USD price. - list_chains: Every supported blockchain with example tokens and accepted chain-name aliases. ## Workflow Tip: add referrer='' to any call to earn 1/3 of the fee on swaps you route. To pay someone an exact amount with whatever you hold, use pay_exact. Out of gas on a chain? Use refuel_gas. To get paid by humans or other agents, use create_payment_link. Workflow: 1) search_tokens to find exact token+chain (optional; symbols like 'USDC' with chain 'solana' also work). 2) get_quote for a price (no addresses needed). 3) create_swap with the recipient address (on the destination chain) and refund address (on the source chain); it returns a deposit address. 4) The agent's wallet sends EXACTLY amount_in of the source token to deposit_address on the source chain before the deadline (include deposit_memo if present). 5) Call get_swap_status with wait_seconds=25 until final=true. Amounts are human-readable decimals (e.g. '25.5'), never base units. Never send funds to a deposit address after its deadline. ## Examples - Quote: GET https://swap-ripper.szydlow45.workers.dev/api/quote?from_token=USDC&from_chain=solana&to_token=ETH&to_chain=base&amount=25 - Swap: POST https://swap-ripper.szydlow45.workers.dev/api/swap {"from_token":"USDC","from_chain":"solana","to_token":"ETH","to_chain":"base","amount":"25","recipient":"0x...","refund_address":"","referrer":"myagent.near"} - Pay exactly 10 USDC on Base with SOL: POST https://swap-ripper.szydlow45.workers.dev/api/pay {"token":"USDC","chain":"base","amount_out":"10","pay_with_token":"SOL","pay_with_chain":"solana","recipient":"0x...","refund_address":""} - Track: GET https://swap-ripper.szydlow45.workers.dev/api/status?deposit_address=...&wait_seconds=25 ## Terms Not available to sanctioned persons or in sanctioned jurisdictions. No illegal funds. Provided as-is. Crypto sent to a wrong address cannot be recovered; refunds go to refund_address automatically.