Lumière PayCheck Free API key

Payments on Base + Solana + Keeta + Tempo, cards via Stripe

How to Retry an x402 Request Without Paying Twice

· updated · 4 min read

To retry an x402 request without paying twice, resend the same signed payment instead of signing a new one. An x402 payment is a signed authorization with a one-time nonce, so the same payment can only settle once, however many times you send it. Sign a new payment only after you've confirmed the first one never settled.

Why double payments happen

x402 is a protocol where an API answers HTTP 402 Payment Required with a quote: a price, a network, a token and a payout wallet. Your agent signs a payment for that amount and sends the request again with the payment attached; the seller's facilitator settles it on-chain and the API returns the data. This process works well when everything goes smoothly. But it can fail if the network is slow or your agent crashes.

If the request times out or the agent crashes after the payment is sent, the agent can't tell whether it settled. The mistake is signing a fresh payment and trying again: that's a second authorization with a new nonce, and if the first one did settle, you've paid twice.

> Free tool: x402 endpoint checker: paste any x402 URL to see its grade, uptime, price and payout-wallet history, and real paid-test results, before your agent pays it.

Step 1: Check the endpoint before you pay at all

You should always verify an endpoint is safe and ready before you send funds. Lumière PayCheck monitors over 180,000 x402 endpoints. It checks if the price is stable and if the payout wallet is secure. You can use this check to avoid scams or broken APIs.

Use the free REST API to check a quote. Send a POST request to /v1/check-payment. Include the URL, amount, and payTo address from the 402 quote. The service returns allow true or false with reasons. If it returns false, do not pay. Wait for the issue to resolve.

You can also use the MCP server if you are building an agent. Use the tool check_payment. This tool does the same check but fits into your agent workflow. It helps you decide if a quote is safe.

Step 2: Retry with the same signed payment

If the check passes, your agent signs a payment for the quoted amount and sends it in a header with the retried request. You don't pay on-chain first: the payment travels with the request.

If that request errors or times out, keep the signed payment and send the same header again. The nonce makes it safe: if the first attempt settled, the facilitator won't settle it again. Only sign a new payment if the API answers with a fresh 402 quote and you've confirmed the first payment never reached the chain (look up the transfer to the seller's payout wallet on a block explorer).

Step 3: Report what happened

If you paid and didn't get the data, report it with the MCP tool report_outcome (or the REST equivalent), with the payment's transaction hash. Reports are checked against the on-chain payment, and problems move the endpoint up PayCheck's paid-test queue.

This step is important for the community. It helps other agents avoid endpoints that are broken or dishonest. It also helps sellers fix their issues. Sellers can fund a paid test of their own endpoint (the payment goes to their own payout wallet), and every graded endpoint has a free live badge.

Step 4: Use the web checker for quick checks

If you are not building an agent yet, you can use the web interface. Go to https://lumierepaycheck.org/check. Paste any x402 endpoint URL there. You will see its grade, uptime, price history, and payout wallet status. This is free and requires no code.

You can also use the endpoint checker at https://lumierepaycheck.org/. It gives a quick grade and verdict. The verdicts are proceed, caution or avoid. Proceed means a real paid test delivered and it's reliable. Caution means something isn't confirmed yet, usually no paid test so far. Avoid means don't pay.

FAQ

Can I get a refund if I paid twice? Ask the seller: x402 has no chargeback today, so refunds are up to them. PayCheck never holds or moves anyone's money, but its reliability report shows which sellers refund failed paid calls: https://lumierepaycheck.org/reliability

Does PayCheck issue receipts for my payments? PayCheck does not issue receipts for other people's payments. Every paid test PayCheck makes itself comes with a signed receipt (Ed25519). These are public at GET /v1/test-receipts. Your private payment receipts come from the seller or the blockchain explorer.

What does the score mean? The score is a number from 0 to 100. It reflects the endpoint's trust level. PayCheck monitors if the quote is valid and if the wallet is stable. A high score means the endpoint is likely safe. A low score means you should be careful.

Next steps

Check your first endpoint for free at https://lumierepaycheck.org/.

Check an endpoint before your agent pays it. Free grades and allow-or-deny checks: lumierepaycheck.org · Every x402 endpoint, graded · Docs

More from the blog