How to get your x402 endpoint verified with a paid test
· updated · 6 min read
Agents check an endpoint's grade before they pay it, and an endpoint without a passed paid test stays at C (unconfirmed) at best. This guide covers the three things that get a seller's endpoint verified: declaring payout wallets, getting a paid test, and letting the tester through a sign-in.
1. Declare your payout wallets
Declaring your wallets is the most important step. When a wallet changes, buyers cannot tell a normal rotation from a hijack. An undeclared change is treated with caution. Declare your wallets and switching between them is never flagged. Any wallet you have not declared is blocked immediately.
Publish a file on the domain that serves your endpoints, at https://<your-host>/.well-known/paycheck.json:
{ "payTo": ["0xYourBaseWallet", "YourSolanaWallet"] }Or a DNS TXT record at _paycheck.<your-host>: payto=0xYourBaseWallet,YourSolanaWallet
The parent domain is checked too (api.example.com → example.com), except on shared hosting such as vercel.app, workers.dev, or onrender.com. Only someone who controls your domain can publish either record. If you issue a new payout address on every request, you do not need to declare anything. We detect that pattern and do not flag it.
Declarations are re-read every 6 hours. To have yours read right away, use Check my setup, or from code:
curl -X POST https://lumierepaycheck.org/v1/declaration -H "content-type: application/json" \
-d '{"url":"https://api.example.com/your-endpoint"}'> For sellers: Seller guide: get your endpoint tested, declare your payout wallets and show your grade badge.
> Free tool: x402 endpoint checker: see your endpoint's grade, price and payout wallet the way buyers' agents see them.
2. Fund a test for endpoints priced above $0.05
Our tester pays endpoints priced at $0.05 or less per call on its own. If yours costs more, it stays C (unconfirmed) until a paid test confirms it delivers. You can get it verified yourself.
To fund a test:
- On your endpoint page, click Verify your endpoint.
- A bot replies with your endpoint price and a payment link:
POST https://lumierepaycheck.org/v1/seller-test?url=<endpoint>&issue=<n>, paid once with any x402 client (USDC on Base). - Your payment goes to our tester wallet (the wallet that runs the test) and is held for your test. Our free tests cannot spend it.
- Our tester pays your endpoint that same price at a random time within about 3 hours. The money goes back to your payout wallet. The random time means nobody can serve the tester a special answer at a known moment.
- The bot posts the result on the issue and closes it. The grade comes only from what the test finds, pass or fail.
Where your money goes, exactly:
- The test is capped at what you funded. If it costs less (your price dropped) or your endpoint answers without charging, the unspent part is returned automatically to the wallet that paid.
- If the test cannot run within 3 days (endpoint down, or the price went up after funding), the whole funding is refunded to the wallet that paid it.
3. Handle sign-in requirements
If your endpoint needs its own sign-in on top of x402, it stays C ("needs its own sign-in") until a paid test can get in. Two ways to let it in:
Wallet sign-in (recommended). Our tester signs in with its own wallet, the same way any buyer agent would. A passing test can earn any grade with no label beyond "signed in with our tester wallet".
- The x402 standard (nothing to set up on our side): if your 402 response declares the
sign-in-with-xextension (SIWX, EIP-4361), our tester signs the challenge with the wallet that pays and sends theSIGN-IN-WITH-Xheader with the payment. - Treat the payment as the sign-in: the x402 payment already proves which wallet is calling. If you create an account for a paying wallet automatically, our tester gets in like any new customer.
- Your own signed-header scheme: describe it in
paycheck.jsonand we sign each paid call with EIP-191 (personal_sign):
{
"signIn": {
"*": {
"type": "eip191",
"message": "{method} {path} {timestamp}",
"headers": { "X-Address": "{address}", "X-Signature": "{signature}", "X-Timestamp": "{timestamp}" }
}
}
}Placeholders: {address} {signature} {timestamp} (unix seconds) {timestampMs} {isoTime} {nonce} {method} {path} {pathWithQuery} {host} {url} {bodySha256} {chainId}. The message must include a timestamp or nonce, so every signature is fresh. We only ever sign plain messages for your own endpoint. We never sign typed data or transactions, and never a sign-in message for another site.
A private test account. For sign-ins that need a real account (an API key, a bearer token, a session cookie):
- Fill in the private test account form: your endpoint URL and the sign-in header(s), for example
Authorization: Bearer <test key>(up to 3 headers; choose "every endpoint on this host" to cover them all). - Prove you run the host: add the one line it gives you,
"testAccount": "<code>", to your/.well-known/paycheck.json. - Click Check now. We activate the account and queue a paid re-test.
From code instead: POST https://lumierepaycheck.org/v1/test-account with {"url": "<endpoint>", "headers": {"Authorization": "Bearer <test key>"}, "scope": "host"} returns the code (leave out "scope" to cover one endpoint), and POST /v1/declaration with {"url": "<endpoint>"} activates it.
The details are stored encrypted, sent only to your host on our paid tests (redirects are not followed), and never shown anywhere. The grade comes from what the test finds, up to an A. Your page notes it was tested with a seller-provided account, so buyers know they need their own account with you. Use a test account with the same access a paying customer gets. To revoke it, remove the code from paycheck.json. The next read deletes the stored details. Check its status at GET /v1/test-account/<id>.
Until a test gets in, verified buyer reports still show on your page. Agents that have an account and pay can report what they got, checked against the on-chain payment. They do not change the grade, but buyers can see them.
Common mistakes
- Listing example fields in your x402 Bazaar listing that your real response never returns. Buyers' agents get a note telling them where to read the fields, and the grade is capped at B. Update the listing example to match your real response, then request a re-test with the Dispute link on your endpoint page.
- Ignoring the "blocks independent monitoring" label. If your server refuses our monitor outright (a 401/403 or a firewall block on every check for 36 hours, after it used to answer with a quote), the endpoint is labeled "blocks independent monitoring". This is a low C (60, below every endpoint that simply hasn't been paid-tested yet). It indicates caution because its uptime and delivery cannot be verified. Refused checks are not counted as downtime. Earlier paid tests no longer earn an A or B. The label clears on the next check that gets a quote.
- Assuming a funded test buys a better grade. Declarations, re-tests and test accounts are free, and a funded test only pays your own endpoint its own price. No one can pay for a better grade. Grades come from the same published formula for everyone. Every seller-funded test from the last 7 days and its result is listed on your endpoint page ("3 funded: 2 delivered, 1 didn't"). Buyers and their agents see the whole record, not just the last pass.
For more details, see the API reference.
Related reading
More from the blog
OpenAI Alternatives on x402: How to Check an AI API Before Your Agent Pays
More AI model APIs now sell by the call over x402: text generation, image generation, embeddings, speech. No account, no API key, no monthly plan. Your…
We started grading MPP endpoints. Here's what 1,226 of them look like.
We checked every callable endpoint in the MPP catalog and read 30 days of MPP payments on Tempo: 581,000 real payments at a median of 1 cent, 98%…
What Happens When an x402 Payment Fails
When an x402 payment fails, what happens to your money depends on where it failed. If the seller rejects the payment, nothing settles and you keep your…