# Vedetta — Pay-Per-Call Market Intelligence API (x402)

> Crypto, equity, and macro sentiment reads, contrarian divergence verdicts, and live analyst desk answers over x402 (USDC on Base & Solana). No signup, no API key: payment is authentication. Descriptive market research only — not financial advice.

- Base URL: https://vedetta.dethboy.com
- OpenAPI Spec: https://vedetta.dethboy.com/openapi.json
- Agent Card (A2A): https://vedetta.dethboy.com/.well-known/agent-card.json
- x402 Catalog (Base): https://vedetta.dethboy.com/.well-known/x402.json
- x402 Catalog (Solana): https://vedetta.dethboy.com/.well-known/x402-sol.json
- Full Registry: https://vedetta.dethboy.com/registry.json
- MCP Server: `npx -y vedetta-mcp@latest` (set `EVM_PRIVATE_KEY` for paid tools)

## Step 0 - Free Funnel Endpoints (HTTP 200 OK — No Wallet Required)
- GET https://vedetta.dethboy.com/v1/route (FREE) — Task-to-endpoint router (?task=...)
- GET https://vedetta.dethboy.com/v1/korra/calls (FREE) — Korra open/resolved calls (?asset=BTC optional)
- GET https://vedetta.dethboy.com/v1/korra/news (FREE) — Korra scored news (?asset=BTC optional)
- GET https://vedetta.dethboy.com/v1/korra/lean (FREE) — Korra lean gauges (?asset=BTC optional)

## Paid x402 Endpoints (Settled in USDC via x402)
- GET https://vedetta.dethboy.com/v1/feed ($0.01 USDC) — Recent analyst desk posts stream (?since_id=&asset=&limit=)
- GET https://vedetta.dethboy.com/v1/snapshot ($0.01 USDC) — Cached signal + staleness check (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/track-record (FREE) — Verifiable historical call log (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/history ($0.01 USDC) — Historical sentiment time-series (?asset=BTC&limit=50)
- GET https://vedetta.dethboy.com/v1/screener ($0.03 USDC) — Cross-asset contrarian divergence screener (?only=divergent)
- GET https://vedetta.dethboy.com/v1/ask ($0.09 USDC) — Live analyst desk Q&A (?q=...&asset=BTC)
- GET https://vedetta.dethboy.com/v1/consensus ($0.09 USDC) — Sentiment-vs-price divergence verdict (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/pulse ($0.09 USDC) — Market-wide crypto regime read & macro anchor
- GET https://vedetta.dethboy.com/v1/theme ($0.09 USDC) — Deep-dive on market theme (?theme=ai-sentiment-divergence, altcoin-decoupling, macro-risk-off, regulatory-pressure, tradfi-adoption, rwa, meme-supercycle)
- GET https://vedetta.dethboy.com/v1/equity ($0.09 USDC) — US stock divergence read (?asset=NVDA, TSLA, AAPL, COIN, MSTR, PLTR, AMD, META)
- GET https://vedetta.dethboy.com/v1/macro ($0.09 USDC) — Macro instrument read (?asset=SPX, VIX, US10Y, US2Y, GOLD, OIL, BRENT)
- GET https://vedetta.dethboy.com/v1/prediction ($0.09 USDC) — Falsifiable forecast + invalidation criteria (?asset=BTC&horizon=7d)
- GET https://vedetta.dethboy.com/v1/trend ($0.09 USDC) — Price-vs-sentiment momentum trajectory (?asset=BTC&window=7d)
- GET https://vedetta.dethboy.com/v1/house-view ($0.09 USDC) — High-conviction thesis & insight threads (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/news-read ($0.09 USDC) — Breaking news catalyst analysis (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/event ($0.09 USDC) — Live anomaly trigger probe (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/odds ($0.09 USDC) — Live Polymarket & Kalshi odds vs crowd sentiment (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/narrative ($0.09 USDC) — Dominant narrative & 24h rotation detection (?asset=BTC)
- GET https://vedetta.dethboy.com/v1/social ($0.09 USDC) — Live social sentiment & crowd positioning (?asset=BTC)

## Payment Method 1: FluxA Wallet CLI (x402 v3)
This endpoint settles on-chain in USDC via x402. Follow these steps in order for paid endpoints:

Step 1 - Install FluxA Wallet CLI:
npm install -g @fluxa-pay/fluxa-wallet
Or use without installing: npx fluxa-wallet <command>

Step 2 - Register agent:
fluxa-wallet init --name "<YOUR_AGENT_NAME>" --client "<YOUR_CLIENT>"
If an authorization URL is returned, present options: [Yes, open the link] [No, don't open]. If YES: run 'open "<URL>"'.
Verify: fluxa-wallet status

Step 3 - Create an intent mandate (atomic units, 6 decimals, e.g., 100000 = 0.10 USDC):
fluxa-wallet mandate-create --desc "Spend up to <BUDGET> for Vedetta API valid for <DURATION>" --amount <BUDGET_IN_ATOMIC_UNITS> --seconds <DURATION_IN_SECONDS>

Step 4 - Get user to sign the mandate:
Present the authorizationUrl (TTL: 10m) with options: [Yes, open the link] [No, don't open]. If YES: run 'open "<authorizationUrl>"'.

Step 5 - Wait for mandate to be signed:
fluxa-wallet mandate-status --id <MANDATE_ID>
Poll until mandate.status is "signed". (Use --id, not --mandate).

Step 6 - Call the API & Pay via x402 v3:
Call the GET endpoint. On HTTP 402, pass the complete 402 JSON body (containing the accepts array) as --payload:
fluxa-wallet x402-v3 --mandate <MANDATE_ID> --payload '$PAYLOAD_402'

Step 7 - Retry with payment token:
curl -sS -H "Payment-Signature: <xPaymentB64>" "<ORIGINAL_API_URL>"
Return the raw API response to the user without post-processing.

## Payment Method 2: MCP Server
npx -y vedetta-mcp@latest (with EVM_PRIVATE_KEY set in env).
