Lumière PayCheck Free API key

Payments on Base + Solana + Keeta

What Is a payTo Wallet?

· 2 min read

A payTo wallet is the address in an x402 price quote where the seller wants to be paid. When an AI agent pays an x402 API, the money goes to that wallet, so it decides who actually receives the payment.

How it works

When an agent calls a paid x402 API without paying, the API answers with HTTP 402 Payment Required and a quote. The quote lists the price, the payment network, the token (usually USDC) and the payTo wallet. The agent signs a payment of the quoted amount to that wallet, sends the request again with the payment attached, and gets the data back.

The payTo wallet is just one field in the quote, so the agent can't tell from the quote alone whether it really belongs to the seller.

Why it matters

If an attacker takes over an endpoint, the first thing they usually change is the payTo wallet: the API keeps working and looks the same, but the money goes to them. A changed payTo wallet is often the first sign of a hijacked endpoint.

Sellers do change wallets for normal reasons too, so a change on its own isn't proof of anything. What helps is checking it against something the seller controls:

  • A declaration from the seller. Sellers can publish their payout wallets at /.well-known/paycheck.json on their own domain, so a planned change is recognized as theirs.
  • The wallet's history. Has this endpoint paid out to this wallet before, and for how long?
  • A check before paying. Lumière PayCheck's free check-payment endpoint compares the quote's payTo wallet with the wallet it has seen for that endpoint and answers allow or deny, with the reason.
  • x402 quote: the price and payment details an API sends in its 402 response.
  • Payment proof: the signed payment the agent attaches when it repeats the request.
  • Wallet risk check: screening a wallet against the OFAC sanctions list and its own history before paying it.
  • Paid test: a small real payment that confirms an endpoint delivers what it promises.

Check any x402 endpoint's payTo wallet and history for free at lumierepaycheck.org/check.

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