{
  "$schema": "https://a2a-project.github.io/spec/agent.json",
  "name": "MainStreet",
  "version": "0.8.0",
  "description": "Reputation oracle for onchain AI agents on Base. Vet any agent before paying with x402. Multi-source identity: Virtuals + Farcaster + Coinbase CB1 + Basenames. Reverse-discovery: list all wallets verified by a given platform.",
  "homepage": "https://avisradar.app/mainstreet.html",
  "apiBaseUrl": "https://avisradar-production.up.railway.app/api/agent",
  "openapiUrl": "https://avisradar-production.up.railway.app/api/agent/openapi.json",
  "toolsUrl": "https://avisradar-production.up.railway.app/api/agent/tools.json",
  "owner": {
    "address": "0xAC3ca7c5d3cDD7702fd08F9C4C28dAA22296aDa9",
    "chain": "eip155:8453"
  },
  "identity": {
    "basename": "mainstreetxyz.base.eth",
    "didWeb": "did:web:avisradar-production.up.railway.app",
    "erc8004": { "agentId": "53953", "chain": "base", "registry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432" },
    "farcaster": "rakshasar",
    "github": "philpof102-svg/mainstreet",
    "npm": "@raskhaaa/mainstreet-oracle"
  },
  "capabilities": [
    "reputation-scoring",
    "agent-discovery",
    "trust-vetting",
    "x402-oracle",
    "erc-8004-aggregator",
    "multi-source-identity-proofs",
    "reverse-discovery-by-proof-type",
    "batch-score-lookup",
    "token-deployer-reputation",
    "anti-phishing-preflight",
    "trust-shield-with-flags",
    "category-classification",
    "buyer-side-token-trust",
    "sniper-wallet-detection",
    "pulse-multi-signal-feed",
    "denylist-public"
  ],
  "endpoints": {
    "preflight": "/preflight/{address}",
    "trustShield": "/trust-shield/{address}",
    "tokenPreflight": "/token/{tokenAddress}/preflight",
    "tokenBuyerTrust": "/token/{tokenAddress}/buyer-trust",
    "tokenRecentLaunches": "/token/recent-launches",
    "pulse": "/pulse?hours=24",
    "snipers": "/snipers",
    "denylist": "/denylist",
    "categories": "/categories",
    "byCategory": "/by-category/{category}?safeOnly=1",
    "match": "POST /match",
    "score": "/score/{address}",
    "leaderboard": "/leaderboard",
    "proofsDiscovery": "/proofs?type=virtuals-agent",
    "scoresBatch": "POST /scores",
    "deployerScore": "/deployer/{address}",
    "deployersTop": "/deployers/top",
    "deployersStats": "/deployers/stats",
    "ping": "/discover"
  },
  "buyerBotRecipe": {
    "before-paying-x402": "GET /preflight/{address} — returns BLOCK | CAUTION | PROCEED | PROCEED_LOW_VALUE + reasoning. <50ms, free.",
    "discover-by-intent": "POST /match {intent:'weather data'} — returns ranked, category-boosted, trust-filtered agents.",
    "browse-category": "GET /by-category/search?safeOnly=1 — drops red-shielded agents automatically.",
    "vet-token": "GET /token/{addr}/preflight — combines deployer rep + buyer trust + contract safety.",
    "anti-phishing": "trust-shield checks 11 deterministic flags including known-sniper, denylisted, all-probes-failed, single-payer, suspicious-tld, admin-path."
  },
  "transport": {
    "http": "https://avisradar-production.up.railway.app/api/agent",
    "mcp": "npx @raskhaaa/mainstreet-oracle mainstreet-mcp",
    "sdk": {
      "npm": "@raskhaaa/mainstreet-oracle",
      "cli": "npx @raskhaaa/mainstreet-oracle <agent-address>"
    }
  },
  "oracle": {
    "type": "EIP-712 signed reputation oracle",
    "domain": { "name": "MainStreet", "version": "1", "chainId": 8453 },
    "signer": "0xAC3ca7c5d3cDD7702fd08F9C4C28dAA22296aDa9",
    "attestationEndpoint": "https://avisradar-production.up.railway.app/api/agent/attestation/{address}",
    "statusEndpoint": "https://avisradar-production.up.railway.app/api/agent/auto-attest-status/{address}",
    "verifyEndpoint": "https://avisradar-production.up.railway.app/api/agent/verify",
    "verifierContract": {
      "address": "0x7397adb9713934c36d22aa54b4dbbcd70263592b",
      "chain": "Base mainnet (eip155:8453)",
      "basescan": "https://basescan.org/address/0x7397adb9713934c36d22aa54b4dbbcd70263592b",
      "source": "https://github.com/philpof102-svg/mainstreet/blob/main/contracts/MainStreetVerifier.sol",
      "abi": "https://avisradar-production.up.railway.app/contracts/MainStreetVerifier.abi"
    },
    "freshness": "24 hours",
    "easSchema": {
      "uid": "0xe572079c100f08f537660248df84c632a7c4e5ad3b1d644dc36abb7d993cfe6f",
      "chain": "Base mainnet (eip155:8453)",
      "schema": "address subject,uint8 score,uint64 timestamp,string source",
      "explorer": "https://base.easscan.org/schema/view/0xe572079c100f08f537660248df84c632a7c4e5ad3b1d644dc36abb7d993cfe6f",
      "purpose": "Top MainStreet scores published onchain weekly via EAS. Composable signal — any EAS-aware tool reads without our API."
    },
    "cost": "Free to fetch your own attestation. Buyers pay $0.25 via /audit for full due-diligence.",
    "autonomousAgentHint": "Poll /auto-attest-status/{your-address} daily. If 'fresh' is true, your attestation is cached and zero-latency. Buyers verify your attestation onchain via ecrecover or off-chain via /verify."
  },
  "pricing": {
    "model": "freemium-x402",
    "freeRead": "GET /score/{address}",
    "paidRead": "GET /score/{address}?live=1 (HTTP 402, $0.05 USDC on Base)",
    "paidEndpoints": [
      { "route": "GET /audit/{address}", "price": "$0.25 USDC", "purpose": "Premium 360° due-diligence: score + all proofs + launch history + traders + settlements + SLA + ERC-8004 feedback. Replaces ~8 free calls." },
      { "route": "GET /proofs/export", "price": "$1 USDC", "purpose": "Bulk export of all multi-source identity proofs (Virtuals/Farcaster/CB1/Basenames/etc) as CSV/JSON." },
      { "route": "POST /webhook/extend", "price": "$5 USDC", "purpose": "Extend a real-time webhook subscription by 30 days (new agents, score changes, ERC-8004 events)." },
      { "route": "POST /sponsor/{address}", "price": "$25 USDC/week", "purpose": "Sponsor an agent's listing on MainStreet leaderboard for a week (boosted visibility)." },
      { "route": "GET /clawd/creator-audit/{address}", "price": "$0.50 USDC", "purpose": "PumpClaw creator due-diligence: launch history, rug rate, alive ratio, identity proofs." },
      { "route": "GET /clawd/trader-attestation/{address}", "price": "$1 USDC", "purpose": "Signed attestation a trader has bought >=N PumpClaw tokens (for badges/access)." },
      { "route": "GET /clawd/rug-alert/{tokenAddr}", "price": "$2 USDC", "purpose": "Subscribe webhook for rug behavior on a Clawd-launched token (30 days)." },
      { "route": "POST /clawd/featured-cast/{tokenAddr}", "price": "$5 USDC", "purpose": "Get a token featured in MainStreet daily stats cast on Farcaster." },
      { "route": "POST /clawd/sponsor/{creator}", "price": "$10 USDC/week", "purpose": "Sponsor a PumpClaw creator on the clawd leaderboard." }
    ],
    "currency": "USDC",
    "chain": "Base",
    "payTo": "0xAC3ca7c5d3cDD7702fd08F9C4C28dAA22296aDa9",
    "revenue": {
      "totalSettlementsLive": "https://avisradar-production.up.railway.app/api/agent/revenue",
      "uniqueBuyers": "https://avisradar-production.up.railway.app/api/agent/revenue/buyers"
    }
  },
  "compliance": {
    "erc8004": {
      "agentId": "53953",
      "globalId": "eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#53953",
      "registries": {
        "identity": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
        "reputation": "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63"
      }
    },
    "x402Bazaar": {
      "indexed": true,
      "discoveryUrl": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/merchant?payTo=0xAC3ca7c5d3cDD7702fd08F9C4C28dAA22296aDa9"
    }
  },
  "license": "MIT",
  "repo": "https://github.com/philpof102-svg/mainstreet"
}
