The Watchtower Engine
The Watchtower is the off-chain infrastructure that powers PolyOrbit. While the blockchain handles the settlement of funds, the Watchtower handles the observation and timing of execution.
Continuous Monitoring
The Watchtower is a distributed network of listener nodes that operate 24/7. These nodes query the Polymarket APIs and the Polygon blockchain state at high frequency (sub-second intervals). They ensure that you do not need to keep your browser open for a chain to execute.
How It Works
Registry: When you deploy a Chain, its logic is encoded and registered in the Watchtower's database.
Polling: The engine continuously polls the status of the Source Markets associated with active chains.
Event Detection: As soon as the Polymarket Oracle (UMA) or the Order Book data confirms a resolution or price change, the Watchtower flags the event.
Transaction Construction: The engine immediately constructs a transaction payload that satisfies the user's defined Logic and Action.
Broadcasting: This payload is signed using your authorized Session Key and broadcast to the network for immediate execution.
Reliability
To ensure 100% uptime, the Watchtower architecture is redundant. Multiple nodes watch the same markets. If one node fails or experiences latency, another node will pick up the task to ensure your trade is never missed.
Last updated
