<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>anchor-x402 — Base AI Agent plugin</title>
  <meta name="description" content="Sixteen x402-paid services for AI agents on Base mainnet — dual-chain hash anchoring, OFAC sanctions screening, wallet intelligence, transaction & calldata decoding, async wallet due diligence, verifiable RNG, and a universal LLM suite. Pay-per-call USDC. No API keys, no accounts.">
  <link rel="icon" type="image/svg+xml" href="/assets/anchor-logo.svg">
  <link rel="icon" type="image/png" href="/icon.png">
  <link rel="stylesheet" href="/assets/css/anchor.css?v=3">
  <!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="anchor-x402">
<meta property="og:title" content="anchor-x402 — 18 x402-paid services on Base, Solana, Arc, and Polygon (JPYC)">
<meta property="og:description" content="Eighteen x402-paid endpoints on four rails — USDC on Base, Solana and Arc, plus JPYC on Polygon (¥1 per anchor call). 9 commodity primitives, async wallet due-diligence, signed RNG, x402 spend accounting, and 5 universal LLM endpoints. Hosted chatbot at chat.anchor-x402.com — connect a wallet, chat free, pay only when you approve.">
<meta property="og:url" content="https://anchor-x402.com">
<meta property="og:image" content="https://anchor-x402.com/og.png?v=19">

<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="anchor-x402 — 18 x402-paid services. Four rails. USDC + JPYC.">
<meta name="twitter:description" content="Eighteen endpoints on Base, Solana, Arc, and Polygon (JPYC, ¥1 per anchor). Sanctions, wallet intel, due diligence, anchoring, RNG, spend accounting, LLM. Hosted chatbot lets anyone use them with a passkey wallet.">
<meta name="twitter:image" content="https://anchor-x402.com/og.png?v=19">

<!-- AI / agent discovery hints -->
<link rel="alternate" type="application/json" title="x402 service catalog" href="/.well-known/x402.json">
<link rel="alternate" type="application/json" title="A2A AgentCard" href="/.well-known/agent-card.json">
<link rel="alternate" type="application/json" title="OpenAPI spec" href="https://api.anchor-x402.com/openapi.json">
<link rel="alternate" type="text/plain" title="LLM-readable index" href="/llms.txt">
<link rel="alternate" type="text/plain" title="AI usage policy" href="/ai.txt">
<link rel="canonical" href="https://anchor-x402.com">
<link rel="sitemap" type="application/xml" href="/sitemap.xml">

<!-- JSON-LD: Schema.org SoftwareApplication + WebAPI + WebSite + Person -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "WebSite",
      "@id": "https://anchor-x402.com/#website",
      "url": "https://anchor-x402.com",
      "name": "anchor-x402",
      "publisher": { "@id": "https://anchor-x402.com/#author" }
    },
    {
      "@type": "SoftwareApplication",
      "@id": "https://anchor-x402.com/#software",
      "name": "anchor-x402",
      "alternateName": ["anchor-x402 agent", "anchor x402"],
      "applicationCategory": ["DeveloperApplication", "BusinessApplication"],
      "applicationSubCategory": "AI agent tools / x402 micropayments",
      "operatingSystem": "any",
      "description": "Eighteen x402-paid services for AI agents, paid in USDC on Base, Solana or Arc, or JPYC on Polygon. Nine commodity primitives, one async due-diligence investigator ($1.77 / ¥350), one verifiable signed RNG, a two-endpoint x402 spend-accounting ledger, and five universal LLM endpoints (roast, oracle with on-chain anchored verdict, TL;DR, aura, grade). Hosted chatbot at chat.anchor-x402.com for users without their own agent. Pay-per-call from any wallet, EIP-3009 gasless, no API keys, no accounts.",
      "url": "https://anchor-x402.com",
      "sameAs": [
        "https://chat.anchor-x402.com",
        "https://api.anchor-x402.com",
        "https://github.com/hypeprinter007-stack/anchor-x402",
        "https://www.npmjs.com/package/anchor-x402-mcp"
      ],
      "downloadUrl": "https://www.npmjs.com/package/anchor-x402-mcp",
      "softwareVersion": "0.3.0",
      "license": "https://opensource.org/licenses/MIT",
      "creator": { "@id": "https://anchor-x402.com/#author" },
      "offers": [
        { "@type": "Offer", "price": "0.001", "priceCurrency": "USD", "description": "Cheap commodity primitives — decoding, name resolution, price, datetime parsing" },
        { "@type": "Offer", "price": "0.005", "priceCurrency": "USD", "description": "Bundled wallet intelligence and dual-chain hash anchoring" },
        { "@type": "Offer", "price": "0.02",  "priceCurrency": "USD", "description": "Wallet risk pre-flight — OFAC sanctions + address-reputation verdict" },
        { "@type": "Offer", "price": "0.01",  "priceCurrency": "USD", "description": "Universal LLM endpoints (aura, grade, tldr) and signed attestation" },
        { "@type": "Offer", "price": "0.05",  "priceCurrency": "USD", "description": "Roast and oracle (oracle includes a dual-chain anchored verdict receipt)" },
        { "@type": "Offer", "price": "0.35",  "priceCurrency": "USD", "description": "Signed + dual-chain-anchored x402 expense report (markdown + CSV), async" },
        { "@type": "Offer", "price": "1.77",  "priceCurrency": "USD", "description": "Agent-driven wallet due-diligence investigator, async 5-10 min" }
      ]
    },
    {
      "@type": "WebAPI",
      "@id": "https://anchor-x402.com/#api",
      "name": "anchor-x402 API",
      "description": "x402 protocol v2 API. 18 paid endpoints + chat surface. Settlement in USDC on Base, Solana and Arc, and JPYC on Polygon mainnet.",
      "url": "https://api.anchor-x402.com",
      "documentation": "https://api.anchor-x402.com/openapi.json",
      "provider": { "@id": "https://anchor-x402.com/#software" }
    },
    {
      "@type": "WebApplication",
      "@id": "https://chat.anchor-x402.com/#chat",
      "name": "anchor-x402 agent chat",
      "alternateName": "Run-it-for-me-via-agent",
      "url": "https://chat.anchor-x402.com",
      "description": "Hosted chatbot for users who don't have an agent of their own. Connect a Coinbase Smart Wallet via passkey (or any browser-extension wallet), chat free, pay only when you approve a tool. Each paid call is a single EIP-3009 USDC authorization you sign.",
      "applicationCategory": "BusinessApplication",
      "operatingSystem": "Modern browser (Chrome, Safari, Firefox, Edge)",
      "provider": { "@id": "https://anchor-x402.com/#software" }
    },
    {
      "@type": "Person",
      "@id": "https://anchor-x402.com/#author",
      "name": "Christopher Ferjo",
      "url": "https://github.com/hypeprinter007-stack",
      "email": "hello@anchor-x402.com"
    }
  ]
}
</script>

</head>
<body data-currency="usd">

  <header class="topbar">
    <div class="container">
      <a class="brand" href="/">anchor<span class="dim">-x402</span></a>
      <nav class="nav">
        <a href="/demos/">demos</a>
        <a href="/trust/">trust</a>
        <a href="https://api.anchor-x402.com/docs">api</a>
        <a href="https://github.com/hypeprinter007-stack/anchor-x402">github</a>
        <a class="nav-cta" href="https://chat.anchor-x402.com">chat ↗</a>
      </nav>
    </div>
  </header>

  <section class="content">
    <div class="container">
      <h1 id="anchor-x402--base-ai-agent-plugin">anchor-x402 — Base AI Agent plugin</h1>

<p>anchor-x402 exposes sixteen pay-per-call HTTPS endpoints that any Base AI Agent can invoke through Base MCP’s native <code class="language-plaintext highlighter-rouge">initiate_x402_request</code> / <code class="language-plaintext highlighter-rouge">complete_x402_request</code> flow. Every call settles in USDC on Base mainnet via the Coinbase x402 facilitator. There are no API keys, no signup, no rate keys to manage — the 402 challenge + EIP-3009 authorization handled by Base MCP is the entire auth surface.</p>

<p>This document is the canonical capability map. Drop it into your assistant’s context (custom plugin / skill) so the model knows what anchor-x402 offers, when each capability is appropriate, and how to set safe <code class="language-plaintext highlighter-rouge">maxPayment</code> caps.</p>

<h2 id="prerequisites">Prerequisites</h2>

<p>The user’s assistant must already have:</p>

<ol>
  <li><strong>Base MCP installed and connected.</strong> See https://docs.base.org/ai-agents/quickstart.</li>
  <li><strong>A Base Account with USDC balance</strong> on Base mainnet. The cheapest call (<code class="language-plaintext highlighter-rouge">/v1/roll</code>, <code class="language-plaintext highlighter-rouge">/v1/decode/*</code>, <code class="language-plaintext highlighter-rouge">/v1/resolve/name</code>, <code class="language-plaintext highlighter-rouge">/v1/price/token</code>, <code class="language-plaintext highlighter-rouge">/v1/parse/datetime</code>) costs <strong>$0.001 USDC</strong>. Holding <strong>$2.00 USDC</strong> covers every endpoint at least once, including the $1.77 async investigator.</li>
  <li><strong>No additional credentials</strong> — anchor-x402 has no API keys, no allowlist, no per-user accounts. The 402 challenge IS the auth.</li>
</ol>

<h2 id="onboarding-gate">Onboarding gate</h2>

<p>Before the first paid call in a session:</p>

<ol>
  <li>Call <code class="language-plaintext highlighter-rouge">get_wallets</code> to confirm the user is on a Base account.</li>
  <li>Surface the price of the chosen endpoint to the user verbatim from this catalog.</li>
  <li>Recommend a <code class="language-plaintext highlighter-rouge">maxPayment</code> cap equal to the listed price — anchor-x402 pricing is fixed; no need to add headroom.</li>
</ol>

<p>If the user’s USDC balance is below the chosen endpoint’s price, halt with a clear message: <em>“This call costs $X USDC on Base. Your Base account is below that balance — top up at https://anchor-x402.com or use a smaller endpoint first.”</em></p>

<h2 id="whats-included">What’s included</h2>

<table>
  <thead>
    <tr>
      <th>#</th>
      <th>Endpoint</th>
      <th>Method</th>
      <th>Price</th>
      <th>Category</th>
      <th>One-liner</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/anchor</code></td>
      <td>POST / GET</td>
      <td>$0.005</td>
      <td>security</td>
      <td>Dual-chain hash anchoring (Base + Solana)</td>
    </tr>
    <tr>
      <td>2</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/screen</code></td>
      <td>GET / POST</td>
      <td>$0.005</td>
      <td>security</td>
      <td>Wallet risk pre-flight — OFAC + address-reputation → allow/review/block</td>
    </tr>
    <tr>
      <td>3</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/attest</code></td>
      <td>POST / GET</td>
      <td>$0.010</td>
      <td>security</td>
      <td>Verify signature → dual-chain anchor</td>
    </tr>
    <tr>
      <td>4</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/decode/tx</code></td>
      <td>POST / GET</td>
      <td>$0.001</td>
      <td>devtools</td>
      <td>Structured mainnet tx decode (Base/Eth/Sol)</td>
    </tr>
    <tr>
      <td>5</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/resolve/name</code></td>
      <td>GET / POST</td>
      <td>$0.001</td>
      <td>identity</td>
      <td>ENS + Bonfida SNS resolver</td>
    </tr>
    <tr>
      <td>6</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/price/token</code></td>
      <td>GET / POST</td>
      <td>$0.001</td>
      <td>finance</td>
      <td>USD spot price (CoinGecko-backed)</td>
    </tr>
    <tr>
      <td>7</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/decode/calldata</code></td>
      <td>POST / GET</td>
      <td>$0.001</td>
      <td>devtools</td>
      <td>EVM calldata → function + typed params</td>
    </tr>
    <tr>
      <td>8</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/parse/datetime</code></td>
      <td>POST / GET</td>
      <td>$0.001</td>
      <td>devtools</td>
      <td>Freeform datetime → ISO 8601 + relative</td>
    </tr>
    <tr>
      <td>9</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/intel/wallet</code></td>
      <td>GET / POST</td>
      <td>$0.005</td>
      <td>data</td>
      <td>Unified wallet intel (8-10 sources, one call)</td>
    </tr>
    <tr>
      <td>10</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/investigate</code></td>
      <td>POST / GET</td>
      <td>$1.77</td>
      <td>security (async)</td>
      <td>Multi-step agent wallet due diligence</td>
    </tr>
    <tr>
      <td>11</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/roast</code></td>
      <td>POST / GET</td>
      <td>$0.050</td>
      <td>ai_ml</td>
      <td>LLM roast of any target</td>
    </tr>
    <tr>
      <td>12</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/oracle</code></td>
      <td>POST / GET</td>
      <td>$0.050</td>
      <td>ai_ml</td>
      <td>Yes/no oracle with anchored verdict</td>
    </tr>
    <tr>
      <td>13</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/tldr</code></td>
      <td>POST / GET</td>
      <td>$0.010</td>
      <td>ai_ml</td>
      <td>URL or text → 3-5 bullet summary</td>
    </tr>
    <tr>
      <td>14</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/aura</code></td>
      <td>POST / GET</td>
      <td>$0.010</td>
      <td>ai_ml</td>
      <td>Color + tier + 0-9999 score read</td>
    </tr>
    <tr>
      <td>15</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/grade</code></td>
      <td>POST / GET</td>
      <td>$0.010</td>
      <td>ai_ml</td>
      <td>Letter grade + red-pen marginalia</td>
    </tr>
    <tr>
      <td>16</td>
      <td><code class="language-plaintext highlighter-rouge">/v1/roll</code></td>
      <td>POST / GET</td>
      <td>$0.001</td>
      <td>security</td>
      <td>Verifiable signed RNG (drop-in VRF)</td>
    </tr>
  </tbody>
</table>

<p>Base URL: <strong><code class="language-plaintext highlighter-rouge">https://api.anchor-x402.com</code></strong></p>

<h2 id="payment-flow">Payment flow</h2>

<p>For every paid call, use Base MCP’s standard two-step pattern:</p>

<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
  </span><span class="nl">"server"</span><span class="p">:</span><span class="w"> </span><span class="s2">"base-mcp"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"action"</span><span class="p">:</span><span class="w"> </span><span class="s2">"initiate_x402_request"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"args"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nl">"url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://api.anchor-x402.com/v1/&lt;endpoint&gt;"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"method"</span><span class="p">:</span><span class="w"> </span><span class="s2">"POST"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"maxPayment"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;exact price from catalog&gt;"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"body"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="err">/*</span><span class="w"> </span><span class="err">endpoint-specific</span><span class="w"> </span><span class="err">*/</span><span class="w"> </span><span class="p">}</span><span class="w">
  </span><span class="p">}</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p>User receives a Base Account approval modal showing the URL, amount, and network. After approval:</p>

<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
  </span><span class="nl">"server"</span><span class="p">:</span><span class="w"> </span><span class="s2">"base-mcp"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"action"</span><span class="p">:</span><span class="w"> </span><span class="s2">"complete_x402_request"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"args"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nl">"requestId"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;from step 1&gt;"</span><span class="w"> </span><span class="p">}</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p>The framework handles the 402 challenge, EIP-3009 transferWithAuthorization signature, facilitator settlement, and request replay automatically. The response is the paid endpoint’s normal JSON body — no payment-handling code needed in the plugin.</p>

<h2 id="service-catalog">Service catalog</h2>

<h3 id="1-v1anchor--dual-chain-hash-anchoring--0005">1. <code class="language-plaintext highlighter-rouge">/v1/anchor</code> — Dual-chain hash anchoring · $0.005</h3>

<p>Anchor a 32-byte hash to <strong>Base + Solana mainnet in parallel</strong>. Returns both transaction URLs as cryptographic proof of when the hash existed.</p>

<p><strong>Use when:</strong> the user wants a timestamp-proof record on-chain (e.g. agent decision audit, document hash, AI output hash). Two chains anchored ≈ defense in depth — no single L1 risk.</p>

<p><strong>Body:</strong></p>
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w"> </span><span class="nl">"hash"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;64-char hex, no 0x&gt;"</span><span class="w"> </span><span class="p">}</span><span class="w">
</span></code></pre></div></div>
<p><em>or</em> pass <code class="language-plaintext highlighter-rouge">{"data": &lt;any JSON&gt;}</code> to let the server canonicalize + SHA-256 it. Optional <code class="language-plaintext highlighter-rouge">note</code> (≤200 chars) returned in response, NOT stored on-chain.</p>

<p><strong>Returns:</strong> <code class="language-plaintext highlighter-rouge">{ merkle_root, base: {tx, explorer_url}, solana: {tx, explorer_url}, anchored_at }</code>.</p>

<p><strong>Example:</strong></p>
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
  </span><span class="nl">"server"</span><span class="p">:</span><span class="w"> </span><span class="s2">"base-mcp"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"action"</span><span class="p">:</span><span class="w"> </span><span class="s2">"initiate_x402_request"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"args"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nl">"url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://api.anchor-x402.com/v1/anchor"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"method"</span><span class="p">:</span><span class="w"> </span><span class="s2">"POST"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"maxPayment"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0.005"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"body"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nl">"data"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nl">"decision"</span><span class="p">:</span><span class="w"> </span><span class="s2">"approve_loan"</span><span class="p">,</span><span class="w"> </span><span class="nl">"agent_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"underwriter-v3"</span><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="p">}</span><span class="w">
  </span><span class="p">}</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<hr />

<h3 id="2-v1screen--wallet-risk-pre-flight--0005">2. <code class="language-plaintext highlighter-rouge">/v1/screen</code> — wallet risk pre-flight · $0.005</h3>

<p>Returns an <code class="language-plaintext highlighter-rouge">allow</code> / <code class="language-plaintext highlighter-rouge">review</code> / <code class="language-plaintext highlighter-rouge">block</code> recommendation with a risk score and per-signal detail: OFAC SDN sanctions plus address-reputation (drainer, phishing, mixer, laundering) from GoPlus. Degrades to a partial verdict rather than failing if the reputation layer is unavailable.</p>

<p><strong>Use when:</strong> the agent needs a fast pre-trade / pre-disbursement compliance check on an EVM or Solana address.</p>

<p><strong>Query / body:</strong> <code class="language-plaintext highlighter-rouge">wallet=&lt;EVM 0x… or Solana base58&gt;</code></p>

<p><strong>Returns:</strong> <code class="language-plaintext highlighter-rouge">{ wallet, sanctioned: bool, matches: [&lt;program names&gt;], chain_inferred, risk_level }</code>.</p>

<p><strong>Example (GET form for consumer-surface compatibility):</strong></p>
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
  </span><span class="nl">"server"</span><span class="p">:</span><span class="w"> </span><span class="s2">"base-mcp"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"action"</span><span class="p">:</span><span class="w"> </span><span class="s2">"initiate_x402_request"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"args"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nl">"url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://api.anchor-x402.com/v1/screen?wallet=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"method"</span><span class="p">:</span><span class="w"> </span><span class="s2">"GET"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"maxPayment"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0.001"</span><span class="w">
  </span><span class="p">}</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<hr />

<h3 id="3-v1attest--signature-verify--dual-chain-anchor--0010">3. <code class="language-plaintext highlighter-rouge">/v1/attest</code> — Signature verify + dual-chain anchor · $0.010</h3>

<p>Verify a wallet signature over <code class="language-plaintext highlighter-rouge">(input_hash, output_hash, decision)</code> with domain separation, then anchor the resulting Merkle root to Base + Solana. Returns verified signer + on-chain proof.</p>

<p><strong>Use when:</strong> building auditable agent provenance — anchoring a signed claim like “agent X decided Y on input Z” with cryptographic verifiability.</p>

<p><strong>Body:</strong></p>
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
  </span><span class="nl">"input_hash"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;64-hex SHA-256&gt;"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"output_hash"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;64-hex SHA-256&gt;"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"decision"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;≤64 char label&gt;"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"scheme"</span><span class="p">:</span><span class="w"> </span><span class="s2">"eip191 | ed25519"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"signature"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;0x-hex for eip191, base58 for ed25519&gt;"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"signer_pubkey"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;required for ed25519&gt;"</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p><strong>Returns:</strong> verified signer address, anchored merkle root, both chain tx URLs.</p>

<hr />

<h3 id="4-v1decodetx--structured-mainnet-tx-decode--0001">4. <code class="language-plaintext highlighter-rouge">/v1/decode/tx</code> — Structured mainnet tx decode · $0.001</h3>

<p>Multi-chain transaction decode. EVM (Base, Ethereum): <code class="language-plaintext highlighter-rouge">from / to / value / gas / status / calldata</code>. Solana: <code class="language-plaintext highlighter-rouge">slot / fee / signers / program_calls</code>.</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "chain": "base" | "ethereum" | "solana", "tx_hash": "..." }</code></p>

<p><strong>Use when:</strong> explaining what a transaction did, or extracting parameters from a tx hash without the agent needing chain-specific RPC code.</p>

<hr />

<h3 id="5-v1resolvename--ens--sns-resolver--0001">5. <code class="language-plaintext highlighter-rouge">/v1/resolve/name</code> — ENS + SNS resolver · $0.001</h3>

<p>Cross-chain name resolution: <code class="language-plaintext highlighter-rouge">.eth</code> (ENS) and <code class="language-plaintext highlighter-rouge">.sol</code> (Bonfida SNS). Returns resolved address(es) per registry.</p>

<p><strong>Query / body:</strong> <code class="language-plaintext highlighter-rouge">name=&lt;human-readable&gt;</code></p>

<p><strong>Use when:</strong> the user references an address as a name (<code class="language-plaintext highlighter-rouge">vitalik.eth</code>, <code class="language-plaintext highlighter-rouge">solana.sol</code>) and the agent needs the underlying pubkey.</p>

<hr />

<h3 id="6-v1pricetoken--usd-spot-price--0001">6. <code class="language-plaintext highlighter-rouge">/v1/price/token</code> — USD spot price · $0.001</h3>

<p>CoinGecko-backed token price by symbol or by <code class="language-plaintext highlighter-rouge">chain + contract</code>. 60s cache.</p>

<p><strong>Query / body:</strong> <code class="language-plaintext highlighter-rouge">symbol=ETH</code> <em>or</em> <code class="language-plaintext highlighter-rouge">chain=base&amp;contract=0x...</code></p>

<p><strong>Use when:</strong> quoting a USD value for a token denomination, calculating portfolio value, or showing price context.</p>

<hr />

<h3 id="7-v1decodecalldata--evm-calldata-decoder--0001">7. <code class="language-plaintext highlighter-rouge">/v1/decode/calldata</code> — EVM calldata decoder · $0.001</h3>

<p>Raw EVM calldata → function name + typed parameters. Powered by openchain.xyz signature directory + <code class="language-plaintext highlighter-rouge">eth_abi</code>.</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "chain": "ethereum" | "base", "calldata_hex": "0x..." }</code></p>

<p><strong>Use when:</strong> decoding what an EVM tx is <em>attempting</em> before submission, or explaining a tx in a wallet UI.</p>

<hr />

<h3 id="8-v1parsedatetime--freeform-datetime-parser--0001">8. <code class="language-plaintext highlighter-rouge">/v1/parse/datetime</code> — Freeform datetime parser · $0.001</h3>

<p>Freeform datetime string → structured ISO 8601 + components + relative time + parser confidence.</p>

<p><strong>Body:</strong></p>
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w"> </span><span class="nl">"input"</span><span class="p">:</span><span class="w"> </span><span class="s2">"next Thursday at 3pm ET"</span><span class="p">,</span><span class="w"> </span><span class="nl">"base_time"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;optional ISO&gt;"</span><span class="p">,</span><span class="w"> </span><span class="nl">"timezone"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;optional IANA&gt;"</span><span class="w"> </span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p><strong>Use when:</strong> normalizing user-provided times into deterministic ISO 8601 for scheduling, reminders, or on-chain commits.</p>

<hr />

<h3 id="9-v1intelwallet--unified-wallet-intelligence--0005">9. <code class="language-plaintext highlighter-rouge">/v1/intel/wallet</code> — Unified wallet intelligence · $0.005</h3>

<p><strong>One call returns:</strong> balances on Base + Ethereum + Solana, USDC across chains, tx counts, ENS/SNS reverse, sanctions verdict — aggregated from 8-10 parallel sources.</p>

<p><strong>Query / body:</strong> <code class="language-plaintext highlighter-rouge">wallet=&lt;EVM or Solana&gt;</code></p>

<p><strong>Use when:</strong> building a counterparty profile, KYB check, or pre-flight before sending value. Replaces 8-10 separate RPC calls with one $0.005 fetch.</p>

<hr />

<h3 id="10-v1investigate--agent-driven-wallet-due-diligence--177-async-5-10-min">10. <code class="language-plaintext highlighter-rouge">/v1/investigate</code> — Agent-driven wallet due diligence · $1.77 (async, 5-10 min)</h3>

<p>Multi-step LLM investigation: sanctions screen, on-chain history, identity correlation, counterparty graph. Delivered as a <strong>signed markdown report + JSON sidecar with dual-chain anchor proof on Base + Solana</strong>. ETA 5-10 minutes.</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "address": "&lt;EVM or Solana&gt;" }</code></p>

<p><strong>Returns immediately:</strong> <code class="language-plaintext highlighter-rouge">{ job_id, status: "accepted", status_url, eta_seconds }</code>.</p>

<p><strong>Polling:</strong> <code class="language-plaintext highlighter-rouge">GET /v1/investigate/status/{job_id}</code> is <strong>free</strong> (not x402-paid). Poll every 30-60s. When <code class="language-plaintext highlighter-rouge">status == "DELIVERED"</code>, the response includes <code class="language-plaintext highlighter-rouge">deliverable: { reportUrl, reportJsonUrl, verdict, score, signedBy, signature, merkleRoot, baseAnchorTx, solanaAnchorTx, disclaimer }</code>.</p>

<p><strong>Use when:</strong> the agent needs a substantive human-reviewable wallet investigation — counterparty diligence, fraud signals, deep history. Not for fast preflight (use <code class="language-plaintext highlighter-rouge">/v1/screen</code> + <code class="language-plaintext highlighter-rouge">/v1/intel/wallet</code> instead).</p>

<p><strong>Example dispatch:</strong></p>
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
  </span><span class="nl">"server"</span><span class="p">:</span><span class="w"> </span><span class="s2">"base-mcp"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"action"</span><span class="p">:</span><span class="w"> </span><span class="s2">"initiate_x402_request"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"args"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nl">"url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://api.anchor-x402.com/v1/investigate"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"method"</span><span class="p">:</span><span class="w"> </span><span class="s2">"POST"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"maxPayment"</span><span class="p">:</span><span class="w"> </span><span class="s2">"1.77"</span><span class="p">,</span><span class="w">
    </span><span class="nl">"body"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nl">"address"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"</span><span class="w"> </span><span class="p">}</span><span class="w">
  </span><span class="p">}</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p><strong>Status polling is free.</strong> Do not use <code class="language-plaintext highlighter-rouge">initiate_x402_request</code> for <code class="language-plaintext highlighter-rouge">/v1/investigate/status/{job_id}</code> — it’s not x402-paid. Approach depends on your surface:</p>

<ul>
  <li><strong>Claude Code / Cursor / Codex / Claude Desktop with MCP:</strong> use the harness’s HTTP fetch (<code class="language-plaintext highlighter-rouge">bash curl</code>, the host’s <code class="language-plaintext highlighter-rouge">fetch</code>/<code class="language-plaintext highlighter-rouge">web_fetch</code> tool, etc.) to GET <code class="language-plaintext highlighter-rouge">https://api.anchor-x402.com/v1/investigate/status/&lt;job_id&gt;</code>. Poll every 30-60s.</li>
  <li><strong>Claude.ai / ChatGPT consumer:</strong> <code class="language-plaintext highlighter-rouge">web_request</code> rejects non-allowlisted hosts on these surfaces. Ask the user to paste the status URL into the chat when they want an update; the assistant will fetch it via standard link-following.</li>
</ul>

<hr />

<h3 id="11-v1roast--llm-roast--0050">11. <code class="language-plaintext highlighter-rouge">/v1/roast</code> — LLM roast · $0.050</h3>

<p>Witty roast of any target — wallet, tweet, idea, code, anything. Universal text input. Powered by Claude on AWS Bedrock.</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "target": "&lt;≤8000 chars&gt;" }</code></p>

<p><strong>Use when:</strong> the user explicitly asks for a roast / dunking on something. <strong>Do not invoke unsolicited</strong> — this endpoint produces blunt, sometimes harsh language and burns $0.05.</p>

<hr />

<h3 id="12-v1oracle--yesno-oracle-with-anchored-verdict--0050">12. <code class="language-plaintext highlighter-rouge">/v1/oracle</code> — Yes/no oracle with anchored verdict · $0.050</h3>

<p>Yes/no question → MAYBE / YES / NO + explanation + dual-chain anchored proof (<code class="language-plaintext highlighter-rouge">merkle_root</code>, <code class="language-plaintext highlighter-rouge">base_tx</code>, <code class="language-plaintext highlighter-rouge">solana_tx</code>).</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "question": "&lt;≤1000 chars, a yes/no question&gt;" }</code></p>

<p><strong>Use when:</strong> the user wants a decision artifact they can reference later — the verdict is anchored on-chain on both Base and Solana, making it tamper-evident.</p>

<hr />

<h3 id="13-v1tldr--summarizer--0010">13. <code class="language-plaintext highlighter-rouge">/v1/tldr</code> — Summarizer · $0.010</h3>

<p>URL (fetched server-side) or pasted text → 3-5 concise bullet summary.</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "url": "&lt;https URL&gt;" }</code> <em>or</em> <code class="language-plaintext highlighter-rouge">{ "text": "&lt;pasted content&gt;" }</code>.</p>

<p><strong>Use when:</strong> the user wants a tight summary and the source is too long to paste; or wants a server-side fetch (e.g. paywalled, behind a redirect, or to avoid disclosing the URL to the assistant’s host).</p>

<hr />

<h3 id="14-v1aura--aura-read--0010">14. <code class="language-plaintext highlighter-rouge">/v1/aura</code> — Aura read · $0.010</h3>

<p>Returns color (free-form), tier (S/A/B/C/D/F), score 0-9999, description. Screenshot-friendly viral output.</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "target": "&lt;≤4000 chars&gt;" }</code></p>

<p><strong>Use when:</strong> the user explicitly asks for a vibe check / aura read. <strong>Do not invoke unsolicited</strong> — output is screenshot-friendly viral content that can read as mocking; only run on a target the user named with clear intent.</p>

<hr />

<h3 id="15-v1grade--letter-grade--marginalia--0010">15. <code class="language-plaintext highlighter-rouge">/v1/grade</code> — Letter grade + marginalia · $0.010</h3>

<p>Academic letter grade (A-F) + red-pen marginalia bullets + summary.</p>

<p><strong>Body:</strong> <code class="language-plaintext highlighter-rouge">{ "target": "&lt;≤6000 chars&gt;" }</code></p>

<p><strong>Use when:</strong> critique / feedback on a piece of work — code, essay, pitch, design doc.</p>

<hr />

<h3 id="16-v1roll--verifiable-signed-rng--0001">16. <code class="language-plaintext highlighter-rouge">/v1/roll</code> — Verifiable signed RNG · $0.001</h3>

<p>Cryptographically-random integer(s) over a caller-chosen range, <strong>signed by the treasury EOA (EIP-191)</strong>. Drop-in VRF for game studios, raffles, DAO voter selection, NFT mint reveals.</p>

<p><strong>Body:</strong></p>
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
  </span><span class="nl">"low"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
  </span><span class="nl">"high"</span><span class="p">:</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w">
  </span><span class="nl">"count"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
  </span><span class="nl">"commitment"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;optional 32-byte hex pre-commitment&gt;"</span><span class="p">,</span><span class="w">
  </span><span class="nl">"label"</span><span class="p">:</span><span class="w"> </span><span class="s2">"&lt;optional ≤200 char tag&gt;"</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p>The optional <code class="language-plaintext highlighter-rouge">commitment</code> is included in the signed payload to close front-running windows: commit to your inputs first, then call <code class="language-plaintext highlighter-rouge">/v1/roll</code>, and verifiers can prove the inputs were fixed before randomness was sampled.</p>

<p><strong>Returns:</strong> <code class="language-plaintext highlighter-rouge">{ low, high, values: [n,...], signed_payload, signature, signer_address }</code>.</p>

<p><strong>Use when:</strong> producing a result the user (or third party) can later cryptographically verify came from anchor-x402 without trusting anchor-x402’s server log.</p>

<h2 id="surface-compatibility">Surface compatibility</h2>

<table>
  <thead>
    <tr>
      <th>Surface</th>
      <th>POST endpoints</th>
      <th>GET endpoints</th>
      <th>Notes</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Claude Code / Codex / Cursor</td>
      <td>✅ Full</td>
      <td>✅ Full</td>
      <td>Harness HTTP tool; use POST forms as documented</td>
    </tr>
    <tr>
      <td>Claude Desktop with MCP</td>
      <td>✅ Full</td>
      <td>✅ Full</td>
      <td>Same as above</td>
    </tr>
    <tr>
      <td>Claude.ai (web)</td>
      <td>❌ web_request rejects POST to non-allowlisted hosts</td>
      <td>✅ Via user-paste pattern</td>
      <td>Use the <strong>GET form</strong> of each endpoint; user pastes the URL with query string</td>
    </tr>
    <tr>
      <td>ChatGPT consumer apps</td>
      <td>❌ Same restriction</td>
      <td>✅ Via user-paste</td>
      <td>Same as above</td>
    </tr>
  </tbody>
</table>

<p>Every endpoint in this plugin has a <strong>GET form</strong> with query-string parameters for consumer-surface compatibility. See <code class="language-plaintext highlighter-rouge">https://api.anchor-x402.com/openapi.json</code> for the full GET parameter shapes per endpoint.</p>

<h2 id="multi-rail-availability-outside-base-mcp">Multi-rail availability (outside Base MCP)</h2>

<p>Base MCP’s <code class="language-plaintext highlighter-rouge">initiate_x402_request</code> settles on <strong>Base mainnet USDC only</strong>. anchor-x402 itself accepts four rails:</p>

<ul>
  <li><strong>Base USDC</strong> (this plugin) — <code class="language-plaintext highlighter-rouge">0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913</code></li>
  <li><strong>Solana USDC</strong> — <code class="language-plaintext highlighter-rouge">EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v</code>. Use a Solana x402 client outside Base MCP.</li>
  <li><strong>Arc USDC</strong> — <code class="language-plaintext highlighter-rouge">0x3600000000000000000000000000000000000000</code>. Use an x402 client that supports Arc (<code class="language-plaintext highlighter-rouge">eip155:5042</code>) outside Base MCP.</li>
  <li><strong>JPYC on Polygon</strong> — yen-denominated pricing (e.g. ¥1 for <code class="language-plaintext highlighter-rouge">/v1/anchor</code>). Use a Polygon x402 client outside Base MCP.</li>
</ul>

<p>If the user holds USDC on Solana or Arc, or JPYC on Polygon and wants to use those rails, point them at the direct API + an x402 client SDK; Base MCP itself can’t route those settlements today.</p>

<h2 id="troubleshooting">Troubleshooting</h2>

<p><strong>“Payment required” loops without an approval modal.</strong> The <code class="language-plaintext highlighter-rouge">maxPayment</code> cap is below the listed price. Match it exactly from the catalog above.</p>

<p><strong>Hostname not allowlisted on web_request.</strong> You’re on a consumer surface (Claude.ai, ChatGPT). Use the GET form of the endpoint and let the user paste the URL into the chat so the assistant fetches it as a regular link-following action.</p>

<p><strong><code class="language-plaintext highlighter-rouge">/v1/investigate/status/{job_id}</code> returns 402.</strong> It shouldn’t — the status route is intentionally unpaid. If you see this, file an issue at https://github.com/hypeprinter007-stack/anchor-x402/issues.</p>

<p><strong>Investigation stuck at <code class="language-plaintext highlighter-rouge">DISPATCHING</code> or <code class="language-plaintext highlighter-rouge">IN_PROGRESS</code> past 10 minutes.</strong> Normal ceiling is ~10 min. If exceeded, the job will eventually transition to <code class="language-plaintext highlighter-rouge">FAILED</code> with an <code class="language-plaintext highlighter-rouge">error_msg</code> field. Refund policy: out of band; contact <code class="language-plaintext highlighter-rouge">hello@anchor-x402.com</code>.</p>

<p><strong>A call settles but the response is empty / malformed.</strong> anchor-x402 logs every paid request server-side. Include the <code class="language-plaintext highlighter-rouge">requestId</code> from <code class="language-plaintext highlighter-rouge">complete_x402_request</code> + the timestamp when contacting <code class="language-plaintext highlighter-rouge">hello@anchor-x402.com</code>.</p>

<h2 id="resources">Resources</h2>

<ul>
  <li><strong>Homepage:</strong> https://anchor-x402.com</li>
  <li><strong>OpenAPI spec (interactive):</strong> https://api.anchor-x402.com/docs</li>
  <li><strong>OpenAPI JSON:</strong> https://api.anchor-x402.com/openapi.json</li>
  <li><strong>Canonical x402 discovery doc:</strong> https://anchor-x402.com/.well-known/x402.json</li>
  <li><strong>Agent card:</strong> https://anchor-x402.com/.well-known/agent-card.json</li>
  <li><strong>Trust portal:</strong> https://anchor-x402.com/trust/</li>
  <li><strong>Status page:</strong> https://anchor-x402.betteruptime.com</li>
  <li><strong>MCP server (npm):</strong> https://www.npmjs.com/package/anchor-x402-mcp</li>
  <li><strong>GitHub:</strong> https://github.com/hypeprinter007-stack/anchor-x402</li>
  <li><strong>Hosted chatbot demo:</strong> https://chat.anchor-x402.com</li>
  <li><strong>Support:</strong> <code class="language-plaintext highlighter-rouge">hello@anchor-x402.com</code> · Security: <code class="language-plaintext highlighter-rouge">security@anchor-x402.com</code></li>
</ul>

    </div>
  </section>

  <footer class="site-footer">
    <div class="container">
      <div>Christopher Ferjo · <a href="mailto:hello@anchor-x402.com">hello@anchor-x402.com</a> · MIT</div>
      <div class="links">
        <a href="/trust/">trust</a>
        <a href="/llms.txt">llms.txt</a>
        <a href="/llms.ja.txt">日本語</a>
        <a href="https://anchor-x402.betteruptime.com">status</a>
        <a href="mailto:security@anchor-x402.com">security</a>
      </div>
    </div>
  </footer>

  <script src="/assets/js/anchor.js?v=3"></script>
</body>
</html>
