# Channel Watchtower

Optional service: subscribes to ChallengeSubmitted and calls challengeClose with a newer signed state before the dispute deadline. See docs/channels/WATCHTOWER_AND_INDEXER.md for design.

Config: RPC_URL, PAYMENT_CHANNEL_MANAGER_ADDRESS, PRIVATE_KEY. Optional CHANNELS_FILE (default ./channels.json). channels.json = JSON array of { channelId, nonce, balanceA, balanceB, vA, rA, sA, vB, rB, sB }. Run: npm install && node index.js
