Open Journal

layer 2 watchtower services

How Layer 2 Watchtower Services Work: Everything You Need to Know

June 12, 2026 By Riley Sullivan

How Layer 2 Watchtower Services Work: Everything You Need to Know

Layer 2 scaling solutions, such as payment channels and state channels, rely on off-chain transaction processing to achieve high throughput and low latency. However, this off-chain model introduces a critical security problem: one party can unilaterally close a channel with a stale or fraudulent state, stealing funds from the other party. To counter this, watchtower services act as automated third-party monitors that watch the blockchain for malicious activity and submit fraud proofs when necessary. This article explains the architecture, operational mechanics, and security guarantees of watchtower services, providing a technical deep dive for engineers and finance professionals.

The Core Problem: Off-Chain State Invalidation

In a typical payment channel (e.g., Bitcoin's Lightning Network or Ethereum's Raiden Network), participants exchange signed commitment transactions that update the channel balance off-chain. At any time, either party may broadcast a commitment transaction to the main chain to close the channel. The key vulnerability is that if one party broadcasts an old commitment transaction (one that gives them more funds than the current state), the other party must act within a predefined timeout period to submit a penalty transaction that invalidates the old state. If they fail to monitor the blockchain during this window, they lose funds permanently.

This “watchtower problem” requires continuous online presence, which is impractical for most users. Watchtowers solve this by running monitoring processes that:

  • Accept encrypted state data from channel participants.
  • Scan the blockchain for any broadcast commitment transactions.
  • Match broadcast transactions against stored state data.
  • Submit penalty transactions to enforce the latest valid state.

The watchtower never learns the channel balance or identities of the parties because the state data is encrypted. It only knows enough to detect a published commitment—and even that detection is done via cryptographic hashes, not raw values.

How Watchtowers Process Encrypted Blobs

A watchtower operates as a stateless or semi-stateless service. When a user configures a watchtower, they generate a blob of encrypted data—called a “justice transaction” or “penalty transaction”—for each possible old state. The blob contains the data needed to claim the channel funds if that old state is published. The user shares these blobs with the watchtower, which stores them locally or in a distributed database.

The monitoring process follows a loop:

  1. Block scanning: The watchtower connects to a full node or light client and scans each new block for transactions that spend from the channel's funding output.
  2. Matching via hash: For each relevant transaction, the watchtower computes a hash of the transaction's key fields (e.g., the commitment transaction ID) and checks it against a precomputed table of hashes from the stored blobs. If a match occurs, the watchtower knows that a potentially invalid state has been broadcast.
  3. Decryption and reaction: The watchtower decrypts the matching blob to obtain the full penalty transaction, signs it, and broadcasts it to the blockchain. This penalty transaction typically spends the channel output to the victim's address and may also impose a slashing condition on the malicious party.
  4. Fee management: Watchtowers usually charge a fee (either per-monitored-channel or per-action) and include a reward output in the penalty transaction to compensate themselves for the on-chain fees incurred.

Because the watchtower never learns the actual channel balance or the parties' identities, it cannot steal funds. The penalty transaction is pre-signed by the victim to spend only to a specific address, and the watchtower's private key is only used to sign the transaction broadcast—not to control any funds.

Slashing and Incentive Design

Watchtowers are economically incentivized by a mechanism called “watchtower slashing” or “penalty output.” When a channel is opened, both parties sign a set of commitment transactions, each containing a “to_local” output (to the party who signed it) and a “to_remote” output. A correctly updated commitment includes a revocation key that allows the remote party to claim the to_local output if the other party broadcasts an old state. The watchtower, acting on behalf of the remote party, uses this revocation key to claim the malicious party's funds.

The typical penalty structure works as follows:

  • Justice output: The penalty transaction sends a portion of the malicious party's funds (often 10-20%) to an address controlled by the watchtower service.
  • No risk to honest party: The honest party's funds remain intact; only the malicious party loses their channel balance plus a penalty.
  • Collateral requirement: Some watchtowers require the user to lock a small amount of collateral to prevent Sybil attacks and ensure that penalty transactions are funded by the watchtower's own UTXOs temporarily.

This design aligns incentives: the watchtower has no reason to collude with a malicious party because doing so would yield less profit than submitting the penalty. For a deeper look at how slashing conditions are encoded and enforced across different Layer 2 implementations, you can explore the concept of Layer 2 Validator Slashing as it applies to watchtower environments.

Tradeoffs: Centralized vs. Decentralized Watchtowers

Watchtower services can be categorized into two architectural models:

Feature Centralized Watchtower Decentralized Watchtower
Operation Single server or trusted operator P2P network of nodes (e.g., Taro, Krystal)
Privacy Operator could correlate blobs with IPs Better privacy via onion routing or dHT
Reliability Single point of failure Redundant—multiple nodes monitor
Cost Low fixed fee Variable fee via reputation or tokens
Trust model Trust that operator deletes blobs Trustless—encryption prevents misuse

Centralized watchtowers (e.g., Lightning Labs' Lightning Terminal) are simpler to deploy and integrate directly into wallet software. However, they require users to trust that the operator will not collude with an attacker or censor penalty transactions. Decentralized watchtower networks, such as Taro or the proposed “Watchtower 2.0” in the Lightning Network specification, distribute blobs across multiple nodes using a DHT (Distributed Hash Table). This removes the single point of trust but introduces higher latency and bandwidth costs.

From an implementation perspective, decentralized watchtowers must solve the “free-rider problem”: nodes have no incentive to store blobs unless they receive a fee. Solutions include payment-per-storage (microtransactions for each block monitored) or reputation systems where nodes stake tokens to prove they will provide the service.

Practical Considerations for Deploying a Watchtower

If you are a developer integrating watchtower functionality or a power user running your own node, consider these factors:

  1. Encryption scheme: Use authenticated encryption (e.g., AES-256-GCM) for the blobs. The key must be derived from the channel's revocation secret, which only the channel participant knows. This prevents the watchtower from ever decrypting the blob without the key.
  2. Timeout selection: The CSV (CheckSequenceVerify) or CLTV (CheckLockTimeVerify) timeout on the commitment transaction determines how long the watchtower has to respond. Typical values are 144 blocks (~24 hours) for Lightning. Set this high enough to accommodate network congestion but low enough to prevent prolonged vulnerability.
  3. Fee budgeting: On Ethereum, a penalty transaction can cost $5–$50 in gas during congestion. Watchtowers must price their services to cover these costs plus a profit margin. Users should evaluate whether the watchtower's fee structure is sustainable for their channel size.
  4. Redundancy: Run or subscribe to at least two independent watchtowers. If one fails (e.g., due to a network partition), the second can still submit the penalty. Some wallets allow “n-of-m” watchtower setups where multiple towers must concur before triggering a penalty.

For users who prefer a high degree of self-sovereignty, running a personal watchtower on a dedicated server or Raspberry Pi is feasible. However, this requires managing a full node and maintaining 24/7 uptime. For most users, a commercial watchtower service is more practical, provided it uses cryptographic isolation and transparent fee models.

Real-World Attacks and Mitigations

Watchtowers are not invulnerable. Known attack vectors include:

  • DoS on the watchtower: Flooding the watchtower with fake blobs or transaction hashes to exhaust computational resources. Mitigated by rate-limiting and requiring a small payment per blob submitted.
  • Eclipse attack: Isolating the watchtower from peer-to-peer networks so it misses the broadcast of a fraudulent transaction. Mitigated by connecting multiple independent full nodes and using diverse network paths.
  • Payment delay: The malicious party broadcasts the old transaction at a time when the watchtower's wallet has low UTXOs and cannot pay fees. Mitigated by the watchtower maintaining a reserve UTXO pool and using Replace-by-Fee (RBF) to bump transaction priority.

In response to these threats, many modern watchtower implementations use a “signed state contract” approach: the victim pre-signs multiple penalty transactions for different fee levels, and the watchtower selects the appropriate one based on current mempool conditions. This eliminates the need for the watchtower to hold its own funds during the penalty submission.

Additionally, some proposals advocate for “unilateral watchtowers” that do not require the user to pre-generate blobs. Instead, the watchtower derives the penalty transaction on-the-fly from a trapdoor function, further reducing the user's setup overhead.

Conclusion

Watchtower services are an essential security layer for any off-chain protocol where participants cannot guarantee 24/7 online presence. By monitoring the blockchain for invalid state broadcasts and submitting pre-signed penalty transactions, they effectively eliminate the risk of fraudulent channel closures. The design space encompasses centralized and decentralized variants, each with its own tradeoffs in cost, privacy, and trust. As Layer 2 adoption grows, watchtowers will likely become a standard inclusion in wallet software, offering seamless protection with minimal user friction.

To experiment with a live watchtower implementation or to integrate monitoring into your own node, you can begin now by reviewing open-source libraries and testnet deployments. Understanding the underlying slashing and encryption mechanics is critical for anyone deploying or relying on Layer 2 payment channels at scale.

Further Reading & Sources

R
Riley Sullivan

Reports, without the noise