Docs/API/SpendLimitPolicy

SpendLimitPolicy

classPolicies

Blocks any payment that would breach the per-task or rolling daily budget.

signature
new SpendLimitPolicy(deps: CurbDeps)

The daily check is an atomic reserve (a short-lived hold) so two concurrent payments can’t both slip under the cap; the hold is committed on execution by CurbAuditHook. Writes its decision to HCS.

Parameters

NameTypeDescription
depsreqCurbDeps`{ cfg, store }`.
Notes
  • Usually composed via buildCurbHooks / createCurb, but exported so you can use it standalone.
VERIFIABLE SPEND-CONTROL   ·   ENFORCED ON-CHAIN   ·   AGENTS CAN PAY — NOW THEY CAN’T OVERSPEND   ·   CURB × HEDERA   ·   VERIFIABLE SPEND-CONTROL   ·   ENFORCED ON-CHAIN   ·   AGENTS CAN PAY — NOW THEY CAN’T OVERSPEND   ·   CURB × HEDERA   ·