Implement Solana RPC proxy with automatic failover and caching - Add multi-provider support for 5 free Solana RPC endpoints (Alchemy, PublicNode, Helius, QuickNode, Solana Public) - Implement automatic failover with 30-minute backoff for failed providers - Add disk-based response caching with 100GB LRU eviction - Create SQLite error logging with UUID tracking - Support both HTTP JSON-RPC and WebSocket connections - Include provider-specific authentication handling - Add response normalization for consistent output - Write end-to-end tests for core functionality The proxy provides a unified endpoint that automatically routes requests to available providers, caches responses to reduce load, and logs all errors with retrievable UUIDs for debugging.
14 lines
289 B
Plaintext
14 lines
289 B
Plaintext
# Provider endpoints and auth
|
|
ALCHEMY_API_KEY=your_key_here
|
|
HELIUS_API_KEY=your_key_here
|
|
QUICKNODE_ENDPOINT=your_endpoint.quiknode.pro
|
|
QUICKNODE_TOKEN=your_token_here
|
|
|
|
# Proxy settings
|
|
PROXY_PORT=8545
|
|
CACHE_SIZE_GB=100
|
|
BACKOFF_MINUTES=30
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|
|
ERROR_DB_PATH=./errors.db |