80trust / 100
Pay Base
by badhttp in Onchain & crypto
x402 APIPassing, checked 2 h ago
badhttp /402/pay: a real x402 v2 paywall for testing clients. Pay 0.01 USDC on Base mainnet and get a 200 with a PAYMENT-RESPONSE receipt and the transaction hash. Nothing else is sold; sibling endpoints under /402 misbehave on purpose.
GET https://badhttp.dev/402/pay/base
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 136 ms typical, 136 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://badhttp.dev/402/pay/base"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbadhttp.dev%2F402%2Fpay%2Fbase
const res = await pay("https://badhttp.dev/402/pay/base");
console.log(await res.json());Example output
{
"amount_atomic": "10000",
"amount_usd": 0.01,
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"explorer": "https://basescan.org/tx/0x0000000000000000000000000000000000000000000000000000000000000000",
"facilitator": "https://example.invalid",
"network": "eip155:8453",
"network_name": "base",
"paid": true,
"pay_to": "0x2b14ad50d63c7fee5a33847f95153ac37a690170",
"payer": "0x0000000000000000000000000000000000000000",
"real_money": true,
"scenario": "/402/pay",
"transaction": "0x0000000000000000000000000000000000000000000000000000000000000000"
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 261 ms | $0.01 |
| 7 h ago | Passed | 402 | 136 ms | $0.01 |