Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-audit-seo-quality-1775466652.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
API Server Configuration
The Watch Tower includes an HTTP API server providing version information, configuration details, database dumps, and Prometheus metrics. It starts automatically in watch mode.Default Setup
The API server launches on port8080 when running watch commands:
Custom Port Configuration
Use the--api-port option to specify an alternative port:
API Endpoints
GET /api/version
Returns version details about the running instance:DOCKER_IMAGE_TAG environment variable).
GET /config
Returns current configuration for all monitored networks, including chain ID, contract address, deployment block, filter policies, and page size settings.GET /api/dump/:chainId
Exports the entire database for a specific chain. Supported chain IDs include:1- Ethereum Mainnet11155111- Sepolia42161- Arbitrum One43114- Avalanche8453- Base100- Gnosis Chain137- Polygon
GET /metrics
Exposes Prometheus-compatible metrics for CPU, memory, Node.js runtime, and custom Watch Tower performance data.GET /health
Returns health status with HTTP 200 (healthy) or 503 (unhealthy) codes:GET /
Root endpoint returns:Moooo!
Disabling the API Server
Disable with the--disable-api flag:
Docker Configuration
SetDOCKER_IMAGE_TAG environment variable:
Usage Examples
Check version and health:prometheus.yml: