Configuration
Every environment variable: mode, site URL, secrets, data directory, chain, contract addresses and indexer tuning.
Configuration is environment variables only. Copy .env.example to .env (or .env.local in development) and adjust.
#Core
| Variable | Default | Description |
|---|---|---|
MODE | live (set explicitly) | Production value: live. The server serves live data only when every core contract address is set, the RPC answers chain id 99901 and the contracts have code at those addresses. Otherwise it logs mode.live_refused and /api/health reports requestedMode and modeReason. |
SITE_URL | http://localhost:3030 | Public origin. Used for secure cookies and canonical URLs. Must be the https:// origin in production. |
SESSION_SECRET | random per process | HMAC key for session cookies, at least 32 characters. If unset, a random secret is generated at start-up and every session is lost on restart. |
DATA_DIR | ./data | Directory for the file-backed JSON store. Must be writable and persistent. Use a separate directory for test servers. |
TRUST_PROXY | true | Trust the first X-Forwarded-For hop for client IPs (rate limits). Set false if the server is exposed directly without a proxy. |
#Chain and contracts
| Variable | Default | Description |
|---|---|---|
RPC_URL | https://rpc.elysium.kinetiq.xyz | Elysium JSON-RPC endpoint used by the indexer |
CHAIN_ID | 99901 | Expected chain id. Must be 99901 in live mode |
DAWN_SCHEDULER_ADDRESS | zero address (must be set) | DawnScheduler. Required, must be distinct from the other core addresses |
FORGE_FACTORY_ADDRESS | zero address (must be set) | ForgeFactory. Required |
PULSE_VAULT_ADDRESS | zero address (must be set) | PulseVault. Required |
ORBIT_INDEX_ADDRESS | zero address (must be set) | OrbitIndex. Required |
DYNAMIC_FEE_AMM_IMPL_ADDRESS | zero address (must be set) | DynamicFeeAMM template implementation (cloned per strategy). Required |
BINARY_MARKET_IMPL_ADDRESS | zero address | BinaryMarket template implementation (cloned per strategy) |
QUOTE_TOKEN_ADDRESS | zero address (must be set) | The USDC quote token the strategy pools trade against. Required |
TREASURY_ADDRESS | zero address | Protocol treasury address |
GENESIS_UNIX | unset | Expected genesis time of the first dawn (unix seconds), cross-checked against DawnScheduler.config().genesis |
DEPLOYMENT_BLOCK | first Deploy.s.sol broadcast receipt | First block the indexer reads |
deployments/elysium-99901.json. Server start-up refuses live mode if a required address is the zero address, if the core addresses are not distinct, or if CHAIN_ID is not 99901.MODE=live
CHAIN_ID=99901
GENESIS_UNIX=1796299200 # 2026-12-03 12:00 UTC, first dawn
DAWN_SCHEDULER_ADDRESS=0xA42B0c31ac8338eA6b45bb4D0e784570aFb3EDc7
FORGE_FACTORY_ADDRESS=0x7b12278fc0843111Ca1D86E0a98cD150Bc76C5F5
PULSE_VAULT_ADDRESS=0xDb38260B9B8B606B4a99aADdb81e8328C4AE0454
ORBIT_INDEX_ADDRESS=0x0904E97f6741e90D7A0815064a4F6b1855f04Dfb
DYNAMIC_FEE_AMM_IMPL_ADDRESS=0xeBd14Dd8b5a550AAf3987B710c7aacf8d62E97F3
BINARY_MARKET_IMPL_ADDRESS=0x7EF5e6d5cb30674F96E04aeAF7Ea934924a7c44c
QUOTE_TOKEN_ADDRESS=0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65
TREASURY_ADDRESS=0x240ACF16b5401E2EDb543B798aCA6BC3041b948d#Advanced
| Variable | Default | Description |
|---|---|---|
HYPERLIQUID_API | https://api.hyperliquid.xyz/info | Hyperliquid info API used for the real HYPE price and 24h change. If it is down the ticker is flagged stale |
EXPLORER_URL | https://elysium.kinetiq.xyz/explorer | Block explorer base URL used for links |
CHAIN_CONFIRMATIONS | 5 | Blocks the indexer stays behind the head (reorg safety) |
CHAIN_LOG_RANGE | 2000 | Maximum eth_getLogs block range per request (halved automatically when the RPC refuses) |
CHAIN_POLL_MS | 2500 | Indexer poll interval in milliseconds |
SSE_MAX_PER_IP | 12 in production | Maximum concurrent /api/stream connections per client IP |
PORT, HOSTNAME | 3030, 0.0.0.0 | Listen address of the standalone server |
NEXT_DIST_DIR | .next | Build into another folder (e.g. while the previous build is still being served) |
node -e "console.log(require('crypto').randomBytes(48).toString('base64url'))"Something unclear or wrong on this page? Report it.Updated Dec 1, 2026 · v1.0