What
A live x402-gated crypto price API that returns real BTC/ETH/SOL/BNB/XRP market data for $0.01–$1.00 USDC per call on Base mainnet. 9 paid endpoints, all settled on-chain via Coinbase CDP facilitator.
Why this is useful for portal-tunnel users
portal-tunnel publishes localhost services to the agentic web with x402 payments. Developers testing tunnel routing need real upstream x402 endpoints to route to — not mock servers. This API is a production-grade x402 service that:
- Returns proper HTTP 402 with
payment-required header on unpaid requests
- Settles USDC payments on Base mainnet via Coinbase CDP facilitator (x402scan-indexed)
- Provides
.well-known/x402 discovery manifest and /openapi.json spec
- Exposes
/llms.txt for agent-discoverable documentation
Endpoints
| Endpoint |
Cost |
Description |
GET /price |
$0.01 USDC |
BTC & ETH full payload (price, 24h change, market cap, volume) |
GET /price/{coin} |
$0.02 USDC |
Single coin (btc, eth, sol, bnb, xrp, ada, doge, avax, dot, matic, link, near, sui, apt, arb, op) |
GET /portfolio |
$0.05 USDC |
Multi-coin portfolio snapshot |
GET /opportunities/latest |
$0.03 USDC |
Curated agent-business revenue opportunity feed |
GET /audit/x402 |
$1.00 USDC |
x402 launch audit for service owners |
POST /receipt/verify |
$0.05 USDC |
Classify agent-work receipts into R0-R5 proof tiers |
POST /mcp/call |
$0.05 USDC |
Paid MCP-style tool execution gateway |
Quickstart
# 1. Probe without payment → get 402
curl -i https://x402.167-172-95-184.nip.io/price
# 2. Pay with x402 SDK (Python)
pip install x402 httpx eth-account
export PRIVATE_KEY=0x... # Base mainnet wallet with USDC
python3 -c
What
A live x402-gated crypto price API that returns real BTC/ETH/SOL/BNB/XRP market data for $0.01–$1.00 USDC per call on Base mainnet. 9 paid endpoints, all settled on-chain via Coinbase CDP facilitator.
Why this is useful for portal-tunnel users
portal-tunnel publishes localhost services to the agentic web with x402 payments. Developers testing tunnel routing need real upstream x402 endpoints to route to — not mock servers. This API is a production-grade x402 service that:
payment-requiredheader on unpaid requests.well-known/x402discovery manifest and/openapi.jsonspec/llms.txtfor agent-discoverable documentationEndpoints
GET /priceGET /price/{coin}GET /portfolioGET /opportunities/latestGET /audit/x402POST /receipt/verifyPOST /mcp/callQuickstart