Skip to content

v0.3.0: pin the payee, bound the spend

Choose a tag to compare

@ralyodio ralyodio released this 16 Oct 02:09
· 3 commits to main since this release
86ea7e0
  • payTo: only sign for these payees (address, list, or per-origin map with '*'). Any other payee fails with payee-mismatch before anything is signed; a mixed offer pays the pinned option.
  • budgetUsd: bound the total this client signs (over-budget); client.spentUsd.
  • CLI: --pay-to / X402_PAY_TO, --budget-usd.

Opt-in and backward compatible. Without payTo the client still pays whatever payee the 402 names, up to maxUsd: set it if you know who you pay. (#4)