X402 V2 · BASE MAINNET

One request. No signup.

SLF Guardian is built to be called by an autonomous agent, not configured by a human in a dashboard. A funded Base wallet is the only prerequisite: no account, no API key, no subscription.

Discovery is free. Payment is per successful check.

An unpaid request returns 402 with a PAYMENT-REQUIRED header: price, network, asset, payTo and the tool schema. Nothing is charged until the tool actually succeeds.

STEP 01

Ask. Get a quote. Sign. Retry.

  1. Your agent posts the tool input to https://mcp.slfguardian.com/mcp/<tool>.
  2. The endpoint answers 402 with PAYMENT-REQUIRED and a WWW-Authenticate summary. Both are free.
  3. Your x402 client signs an EIP-3009 authorization for accepts[0] and repeats the call with PAYMENT-SIGNATURE.
  4. On success you get 200, the findings, and PAYMENT-RESPONSE with the transaction hash.
curl -i -X POST https://mcp.slfguardian.com/mcp/check_domain \
  -H 'content-type: application/json' \
  -d '{ "domain": "example.com" }'

# HTTP/1.1 402 Payment Required
# PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6Miwigu… (base64 x402 v2 terms)
PRICE BY TOOL

0.01 to 0.10 USDC.

Cheap single-question checks stay at the floor so an agent can try one. Heavier work — a full code audit or a live site scan — costs more.

0.01 USDCper successful check
check_domain

Check the destination.

Registration age, DNS, lookalikes and reputation for a link, webhook or login page.

POST /mcp/check_domainbase · x402
0.01 USDCper successful check
check_prompt

Spot hidden instructions.

Prompt-injection patterns in untrusted text, HTML or a public URL.

POST /mcp/check_promptbase · x402
0.01 USDCper successful check
check_command

Inspect the command.

Destructive shell and SQL: reversibility, blast radius and whether a human must approve.

POST /mcp/check_commandbase · x402
0.02 USDCper successful check
check_package

Check the dependency.

npm and PyPI existence, maintenance, advisories and typosquat signals before install.

POST /mcp/check_packagebase · x402
0.05 USDCper successful check
audit_code

Review the code.

Static audit for remote execution, credential exfiltration, secrets and unsafe patterns.

POST /mcp/audit_codebase · x402
0.10 USDCper successful check
scan_site

Assess the outside.

Passive TLS, header, exposure and email-spoofing findings with a 0-100 score. Owner authorization required.

POST /mcp/scan_sitebase · x402
STEP 02

No payment code to write.

The official client sees the 402, signs it and retries. This exact setup was verified on Base mainnet with @x402/fetch@2.33.0.

bun add @x402/fetch@2.33.0 @x402/evm@2.33.0 viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY); // Base wallet holding USDC
const client = new x402Client().register("eip155:8453", new ExactEvmScheme(account));
const fetchWithPay = wrapFetchWithPayment(fetch, client);

const res = await fetchWithPay("https://mcp.slfguardian.com/mcp/check_domain", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ domain: "example.com" }),
});
// 200 -> findings in the body, tx hash in the PAYMENT-RESPONSE header
Verified, not just documented.

A real mainnet call settled 0.01 USDC and returned HTTP 200: tx 0xd5dc45eff500aa311fcb84e3a79d720f4efd98bc55f0b03a5aac56cc4663c36f.

STEP 03

Or use it as an MCP server.

The same host speaks Streamable HTTP MCP. With no Authorization header the client is treated as an x402 buyer; with an API key it uses the key path.

{
  "mcpServers": {
    "slf-guardian": {
      "type": "http",
      "url": "https://mcp.slfguardian.com/mcp"
    }
  }
}

Add an Authorization: Bearer <SLF_API_KEY> header only if you want the key path. Sending it disables x402 for that client.

MACHINE-READABLE

Everything an agent reads first.

/.well-known/x402

402 terms, all six tools, schemas and examples.

/.well-known/agent-card.json

A2A agent card with six skills.

/.well-known/mcp/server-card.json

MCP server card and transport.

/openapi.json

OpenAPI document for the HTTP surface.

/llms.txt

Plain-text service summary and prices.

/agents.txt

Agent-facing directory entry.

/status

Live payment config and tool prices.

/stats

Uptime and usage JSON.

WHAT WE PROMISE

The money rules, in writing.

  1. Charged only on success. Invalid input or a server error costs nothing; settlement happens after the tool runs.
  2. No double charge. The same payment signature returns X-SLF-Idempotent-Replay: true and is never charged twice (24 hours).
  3. No stored inputs. Submitted code, prompts, commands and URLs are not stored; only finding counters are kept.
  4. Refund if not delivered. A settled call that returns no result is refunded in full within 24 hours — team@slfguardian.com.
  5. Detectors, not proof. Static and passive analysis only. A pass is a signal, not a safety guarantee.
OPTIONAL

Prefer a key?

An API key still works for clients that cannot sign x402 payments: POST https://slfguardian.com/v1/keys with {"email":"you@example.com"}. x402 clients do not need it and should not send it.

USDC on Base only.

Network eip155:8453, asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payTo 0x10aCe92514ca10242a5738C3B108f3195eF50974. Any challenge quoting another network or token is not this service.