API LIVE — 3 NODES — <50ms

Developer API

SwapTitan REST API — 1288+ no-KYC swaps, multi-chain RPC, AI agent & MCP server. Pay per call or subscribe.

10 swap calls/IP/day free 5 AI calls/IP/day free 50 RPC calls/IP trial
Quick Start

CLI v1.6.8

Swaps, wallet & AI agent from your terminal. Download from swaptitan.net/cli.

npm i -g terafab-clicopy
terafab swap:quote -f btc -t solcopy

JS SDK v1.1.0

Browser & Node. MCP client included. Download SDK

script src="/agent-sdk.js"copy
new SwapTitanAgent().quote(…)copy

MCP Server

Model Context Protocol — connect any AI agent via JSON-RPC 2.0.

POST https://swaptitan.net/mcpcopy
{method: "tools/list"}copy
REST API Endpoints
GET/v1/pricesBTC · SOL · ETH · XMR live pricesfree
GET/v1/assets1288+ supported swap assetsfree
GET/v1/swap/quote?from=btc&to=sol&amount=0.01Quote with best-rate routingfree
POST/v1/swap/createCreate swap → deposit address
GET/v1/swap/status?id=&provider=Poll swap: waiting→confirming→donefree
POST/v1/ai/chatAI agent — swaps, portfolio, rug check
POST/v1/rpc/solSolana RPC — edge cached <50ms
POST/mcpMCP server — JSON-RPC 2.0 · tools/list · tools/callfree
GET/v1/nowpayments/currencies300+ payable cryptos (NowPayments)free
GET/v1/nowpayments/estimate?amount=100&from=usd&to=btcFiat → crypto estimatefree
GET/v1/nowpayments/min?from=btc&to=xmrMin payment amount for pairfree
POST/v1/nowpayments/paymentCreate crypto payment → pay address (AI-payable)free
GET/v1/nowpayments/status/:idPoll payment statusfree
POST/v1/ap4m/permissionRegister agent + set daily spending limit → D1AP4M
GET/v1/ap4m/status?agent_id=Budget · daily spend · TX historyAP4M
POST/v1/ap4m/transactExecute swap with limit enforcement → reject on exceed
POST/v1/ap4m/credentialAgentic Token (HMAC-signed, 30d expiry)AP4M

Base URL: https://api.swaptitan.net  ·  EU mirror: https://api.terafabpay.de

Code Examples
curl
JavaScript
Python
# Get live prices (free) curl https://api.swaptitan.net/v1/prices # Get swap quote (free) curl "https://api.swaptitan.net/v1/swap/quote?from=btc&to=sol&amount=0.01" # Create swap (10/day free, then x402) curl -X POST https://api.swaptitan.net/v1/swap/create -H "Content-Type: application/json" -d '{"from":"btc","to":"sol","amount":0.01,"address":"YOUR_SOL_ADDR"}' # AI agent (5/day free) curl -X POST https://api.swaptitan.net/v1/ai/chat -H "Content-Type: application/json" -d '{"message":"What is the BTC price and how much SOL would I get for 0.1 BTC?"}'
AP4M — Agentic Payment Protocol
AP4M READY
swaptitan.net/.well-known/agent.json · DMV: BOLT-F10-8130
✅ x402 (Coinbase Protocol)
✅ USDC on Base + Solana
✅ A2A Agent Card
✅ MCP Server (6 tools)
✅ Spending Limit Enforcement
✅ DMV Verifiable Identity
1. Register Agent
2. Transact
3. Status
# Step 1: Register agent with spending limit curl -X POST https://api.swaptitan.net/v1/ap4m/permission -H "Content-Type: application/json" -d '{"agent_id":"my_agent_001","spending_limit_usdc":100,"currency":"USDC","chains":["base","solana"]}' # Response: {"success":true,"agent_id":"my_agent_001","token":"ap4m_abc123...","spending_limit_usdc":100,"status":"active"}
x402 Pay-Per-Call

When the free tier is exhausted, the API returns HTTP 402 with payment instructions. Send USDC on Base to the address below, then retry with the tx hash.

PAYMENT ADDRESS (Base)
0xA20E1D8B9aD0fb580a4c36483b1A841D2bE91E68
PRICES (USDC on Base)
swap/create: $0.05   ai/chat: $0.025
# 1. Send USDC on Base → get tx hash # 2. Retry with X-Payment header curl -X POST https://api.swaptitan.net/v1/swap/create -H "X-Payment: 0xYOUR_TX_HASH" -H "Content-Type: application/json" -d '{"from":"btc","to":"sol","amount":0.01,"address":"YOUR_ADDR"}' # 402 response structure when payment needed: # { "x402Version":1, "accepts":[{"payTo":"0xA20E...","asset":"USDC","network":"base-mainnet"}] }

Need more than the free tier?

Subscription plans from €4.99/mo — BTC, USDC or card. Instant license key.