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
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"}] }