---
name: crypto-microdata-x402
description: Pay-per-call Base + crypto market data over x402 (USDC on Base, no key). Use before signing a Base tx (simulate), to resolve ENS/Basenames, to read perp positioning (open interest, liquidations, long/short), live gas, token honeypot risk, swap quotes, DeFi TVL.
---
# Crypto Microdata for Agents (x402)

No API key. Any x402 client (Coinbase Wallet MCP / AgentKit, x402-fetch, x402-axios, Phantom) pays per call in USDC on Base. Ask the user to approve each paid call if your wallet requires it.

## How to call
1. GET the URL. You get HTTP 402 with PAYMENT-REQUIRED (base64 JSON; same terms in the JSON body).
2. Sign the USDC EIP-3009 authorization in accepts[0] (network eip155:8453, payTo 0xe4be4d0bd82d8e68203deff81f79ede0529f2617).
3. Retry the same URL with header PAYMENT-SIGNATURE. 200 = data. 4xx/5xx are never charged.

## Use these first
- Test your client: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/ping?echo=my-agent ($0.001000; same at https://kr-x402-mvp.kgy5612.workers.dev/test?testRunId=run-001 and https://kr-x402-mvp.kgy5612.workers.dev/pay -> paymentVerified + receiptId)
- Will this Base tx revert? GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/simulate?from=0x..&to=0x..&data=0x.. ($0.003000)
- ENS/Basename to address: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/ens?name=vitalik.eth ($0.002000)
- BTC/ETH/SOL open interest + liquidations + long/short: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/liquidations?coin=BTC ($0.003000)
- Live Base gas: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/base-gas ($0.001000)
- Is this Base token a honeypot? GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/token-risk?address=0x.. ($0.010000)
- Best Base swap route + tx: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/swap-quote?from=USDC&to=WETH&amount=10 ($0.003000)

## Chains of calls that work
- Trade: swap-quote -> simulate -> liquidations (is the side crowded?)
- Token check: token-risk -> contract-info -> allowance
- Where to execute: defi-tvl -> chain-rank -> gas-compare

## Not sure which route? (free)
GET https://kr-x402-mvp.kgy5612.workers.dev/find?q=<plain words>  ·  every endpoint + price: https://kr-x402-mvp.kgy5612.workers.dev/info  ·  one-fetch docs: https://kr-x402-mvp.kgy5612.workers.dev/llms-full.txt  ·  MCP: https://kr-x402-mvp.kgy5612.workers.dev/mcp
