X402 Check
by x402 Endpoint Check | Blackwood in Other
Use when you need an x402 endpoint check or x402 endpoint test, or to validate x402 endpoint listings before paying or integrating. Do not use for actually paying the endpoint, or endpoints behind authentication. Returns JSON with an x402 check of an endpoint without paying: whether it answers 402, its payment options (scheme, network, asset, amount, payTo), Bazaar metadata and problems found for 0.007 USDC per call. Typical response time 2500 ms (p95). Category: Infrastructure.
https://x402-gateway.blackwoodstate8.workers.dev/v1/x402-check- Price
- $0.007
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 1.2 s
- 2.3 s slowest 5%
- Last check
- Passed
- 5 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://x402-gateway.blackwoodstate8.workers.dev/v1/x402-check
Each call costs $0.007 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://x402-gateway.blackwoodstate8.workers.dev/v1/x402-check
content-type: application/json
{
"url": "https://x402.org/protected"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
body | object | No | JSON body to send with POST, e.g. {"url": "https://example.com"} (no payment is ever attached) |
method | string | No | HTTP method of the endpoint (GET when omitted) One of: GET, POST. |
url | string | Yes | Public http(s) URL of the x402 endpoint, e.g. https://x402.org/protected |
Example response
The provider's example. We can't check it without paying.
Example response, 41 lines
{
"accepts": [
{
"amount": "10000",
"amountUsd": 0.01,
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"maxTimeoutSeconds": 300,
"network": "eip155:84532",
"payTo": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
"scheme": "exact"
},
{
"amount": "10000",
"amountUsd": 0.01,
"asset": "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU",
"maxTimeoutSeconds": 300,
"network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
"payTo": "CKPKJWNdJEqa81x7CkZ14BVPiY6y16Sxs7owznqtWYp5",
"scheme": "exact"
}
],
"bazaar": {
"inputSchema": false,
"outputSchema": false,
"present": false
},
"checkedAt": "2026-10-17T16:49:24.432Z",
"finalUrl": "https://x402.org/protected",
"problems": [
"no_bazaar_metadata: without discovery metadata the endpoint is hard to find in the Bazaar"
],
"resource": {
"description": "Access to protected content",
"mimeType": null,
"url": "https://x402.vercel.app/protected"
},
"status": 402,
"url": "https://x402.org/protected",
"version": 2,
"x402": true
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.007.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://x402-gateway.blackwoodstate8.workers.dev/v1/x402-check' \
-H 'content-type: application/json' \
--data-raw '{"url":"https://x402.org/protected"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://x402-gateway.blackwoodstate8.workers.dev/v1/x402-check' \
-H 'content-type: application/json' \
--data-raw '{"url":"https://x402.org/protected"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.007 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.007" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.007 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-gateway.blackwoodstate8.workers.dev%2Fv1%2Fx402-check&method=POST
const res = await pay("https://x402-gateway.blackwoodstate8.workers.dev/v1/x402-check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"url": "https://x402.org/protected"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.007 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.007"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://x402-gateway.blackwoodstate8.workers.dev/v1/x402-check",
json={
"url": "https://x402.org/protected",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 780 ms | $0.007 |
| 10 h ago | Passed | 402 | 1.3 s | $0.007 |
| 16 h ago | Passed | 402 | 523 ms | $0.007 |
| 21 h ago | Passed | 402 | 1.4 s | $0.007 |
| 26 h ago | Passed | 402 | 1.6 s | $0.007 |
Show 10 older checks
| 32 h ago | Passed | 402 | 1.4 s | $0.007 |
| 37 h ago | Passed | 402 | 651 ms | $0.007 |
| 42 h ago | Passed | 402 | 825 ms | $0.007 |
| 46 h ago | Passed | 402 | 773 ms | $0.007 |
| 2 days ago | Passed | 402 | 2.5 s | $0.007 |
| 2 days ago | Passed | 402 | 1.9 s | $0.007 |
| 3 days ago | Passed | 402 | 1.4 s | $0.007 |
| 3 days ago | Passed | 402 | 1.2 s | $0.007 |
| 3 days ago | Passed | 402 | 1.4 s | $0.007 |
| 3 days ago | Passed | 402 | 840 ms | $0.007 |