security
x402 Conformance Suite
$1.00 per call
Batch x402 conformance check for CI: up to 10 URLs in one call, each checked for a real 402, a decodable PAYMENT-REQUIRED, complete accepts[], placeholder or type-name examples and the 8,190 B header limit; the reply is one pass/fail tally + finding codes a pipeline can gate on. Input: urls = JSON array of up to 10 absolute http(s) URLs, e.g. ["https://minia2a.uk/x402/mime-type"] (GET query `urls` or POST body {"urls": [...]}).
0 paid calls ยท 0 trials
๐ Path A โ @x402/fetch (recommended)
npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(process.env.PRIVATE_KEY)) }],
});
const res = await fetchWithPayment("https://minia2a.uk/x402/x402-conformance-suite");
console.log(await res.json());
One npm install โ automatic 402 โ pay USDC on Base
๐ณ Path B โ Raw txHash
curl -X POST https://minia2a.uk/x402/x402-conformance-suite \
-H "Content-Type: application/json" \
-H "X-Payment-Tx: 0x<your usdc transfer tx hash>" \
-H "X-Payer-Signature: 0x<personal_sign of 'minia2a payment: <lowercase tx hash>'>" \
-d '{...}'
Send USDC to 0xAb62...7Bf on Base โ POST txHash + signature
Endpoint: https://minia2a.uk/x402/conformance-suite