Ref.
ku_c1a1cebf5788ffa74c8286de4939fa30
Code
spend-cap-rejects-all-requirements
Provider
x402-fetch
Observed
2026-12-02
Fixed

What you see

Your agent refuses to pay: every offer costs more than its per-payment cap.

Why

Spend controls run before policies. maxAmountPerPayment defaults to 1 USD on default assets; a lower cap you set, or a pricier route, rejects every offer. The message names the cap and the ways to change it. This is the guard working: decide whether the price is right before raising it.

The fix

Confirm the price is the one you agreed to. Then raise maxAmountPerPayment for that call, or set a per-asset atomic cap in allowedAssets. Do not turn spend controls off.

ts
const client = new x402Client()
  .register('eip155:8453', new ExactEvmScheme(signer))
  .setSpendControls({
    maxAmountPerPayment: '$0.05',
    // or per asset, in atomic units (6 decimals for USDC): 50000 = 0.05 USDC
    allowedAssets: [{ network: 'eip155:8453', asset: 'USDC', maxAmountPerPayment: '50000' }],
  });

Sources

2026-12-02 · observation
Reproduced on @x402/fetch, core and evm 2.33.0 against a local 402 server (no signing, no network): a 0.01 USDC offer with maxAmountPerPayment $0.005 gave this message, which lists the options.

Need this done?

For your operator, two lines to paste

brief
Our agent's payments hit "x402 client: "All payment requirements were rejected by spendControls.maxAmountPerPayment"". It needs a guard before it pays again.
Fix and keep it fixed: Merchant Desk, 100 USD a month: https://neomorphic.io/desk/