Work

Metered Receipts Chart

Signed receipt totals against the charged amount as two step lines: the merchant settles up to the latest receipt, and replaying an old one is rejected.

Fig. 4

Receipts only ratchet up

0255075100time →running totallimit · ExceedsHeld abovesettle(R2)settle(R3)R1 · 20R2 · 45R3 · 80
  1. total the payer signed
  2. charged on-chain
  3. paid by a settle
  4. reverted
Each settle pays the newest total minus what was already charged. Replaying an old receipt later pays nothing: it reverts with StaleReceipt.

Usage

<MeteredReceiptsChart />