编程

x402-endpoint-validator

试用

Validate x402 endpoints — test 402 responses, check Bazaar extension, verify payment schemas, confirm .well-known/x402 discovery manifests. For agents and operators who want to verify their x402 implementation works correctly.

它能做什么

Validate x402 endpoints — test 402 responses, check Bazaar extension, verify payment schemas, confirm .well-known/x402 discovery manifests. For agents and operators who want to verify their x402 implementation works correctly.

技能文档

x402 Endpoint Validator

Test and validate x402 endpoints. Check that the 402 payment challenge is correctly configured, the Bazaar extension is present, and the .well-known discovery manifest is valid.

What This Validates

  1. 402 Response: Does the endpoint return HTTP 402 with proper payment requirements?
  2. Payment Schema: Is the accepts array valid (asset, network, payTo, amount)?
  3. Bazaar Extension: Does the response include extensions.bazaar with discovery metadata?
  4. Well-Known Manifest: Does /.well-known/x402 exist and contain valid JSON?
  5. Crawl vs Sync: Does the service return results in the same response or queue a job?

Validate a Single Endpoint

# Trigger a 402 (replace URL and body with the service's expected input)
curl -s -o /dev/null -w "%{http_code}" -X POST https://service.example/services/your-endpoint/jobs \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.de"}'

Expected: 402

Inspect the Full 402 Response

curl -s -X POST https://service.example/services/your-endpoint/jobs \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.de"}' | python3 -m json.tool

Check these fields:

FieldExpectedCheck
x402Version2Protocol version
accepts[].scheme"exact"Payment scheme
accepts[].network"eip155:8453"Base mainnet
accepts[].asset"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"USDC contract
accepts[].amountvalid number stringIn atomic units (6 decimals)
accepts[].payTovalid addressWhere to send payment
accepts[].maxTimeoutSecondsnumberMax wait for result
extensions.bazaarpresentBazaar discovery metadata
extensions.bazaar.discoverabletrueIndexed on Bazaar

Validate Well-Known Manifest

curl -s https://service.example/.well-known/x402 | python3 -m json.tool

Check:

  • x402Version = 2
  • serviceName, claim, description are present
  • facilitator is declared (e.g. "cdp")
  • resources array is non-empty
  • Each resource has: url, description, network, payTo, asset, amount, inputSchema

Validate with Agentic Market

Use the official validator at https://agentic.market/validate:

  1. Select HTTP method (GET/POST/etc.)
  2. Enter your endpoint URL
  3. Click Validate

The tool checks x402 configuration, facilitator setup, and Bazaar indexing.

Common Issues

SymptomLikely Cause
HTTP 200 instead of 402Endpoint not x402-configured
Missing accepts arrayPayment schema not declared
Wrong asset addressUSDC on Base is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
No extensions.bazaarBazaar metadata not included
/.well-known/x402 returns 404Discovery manifest not published
Amount too high/lowCheck atomic units (50000 = $0.05)
PAYMENT-SIGNATURE rejectedWrong tx hash, amount mismatch, or expired quote

相关技能

Conformance scanner and graded discovery directory for x402 sellers — lint an origin against 25 checks spanning the protocol surface, agent docs, and directory standing (x402scan / Bazaar / AgentCash), and get an A–F grade with per-check evidence and one-line fixes. Every scanned origin becomes a public directory project (browse the free directory / featured / per-project endpoints); a grade measures protocol conformance only and is NOT an endorsement. Free status, check-category summary, directory, and domain-control verification; paid full scan and cached report. Pay-per-call via x402 (USDC on Base); no accounts, no keys.

Discover x402-enabled services across multiple catalogs — Bazaar, Agentic Market, x402-list.com, .well-known/x402 manifests. Find the best service for a task by scanning machine-readable discovery surfaces.

1 星标

Autonomously monetize your services with x402 payment collection. Set up an x402 server, define paid endpoints, and accept programmatic payments in stablecoins. Become part of the agent-to-agent economy!

1 次安装2 星标

Track and cap x402 spend across providers — per-endpoint hard_cap/soft_cap, pre-authorized override budgets, cumulative spend tracking, monthly ceilings. Makes x402 the client production-safe by preventing overspend and aborting costly calls before they happen.

1 星标

Use this skill when an HTTP request returns 402 Payment Required, when the user wants to call a paid API or x402-protected resource, when they want to discover x402 services, or when they need to fund a wallet across chains.

7 次安装1 星标