v1.18.0
Minor Changes
-
dab4458: Add conditional settlement via
beforeSettlereturning'skip'. A paid route can now return its 2xx handler body without charging when the hook returns'skip';'continue'or void proceeds to settlement as before, and throw still fails the request without settling.Caveat:
'skip'only applies to post-handler settlement paths (x402 exact/upto, MPP transaction/pull). MPP hash/push mode settles at verify, beforebeforeSettleruns —'skip'cannot un-charge a push-mode client.