Kaspa x402

Server Runtime Lock Contract

ChannelLockManager serializes work that can otherwise execute protected handlers or settlement transitions concurrently. The in-memory implementation is for a single server process. Production deployments that run more than one server process for the same trust domain need a shared lock manager.

Required Guarantees

Required Scopes

The direct-mode server uses the lock manager for:

The post-verification exact lock is the handler-safety lock. Durable stores still need unique transaction-id replay records because locks can expire, fail, or be lost during process shutdown.

Source: /docs/server-runtime-lock-contract.md