Skip to content

Workers

One Node process on the operator machine serves every network in RANDOO_NETWORKS, with an independent oracle for each chain and key. For each one it watches the coordinator's logs, builds a Chainlink-format VRF proof with that chain's proving key, and fulfills in turn. HTTP polling always runs. A WebSocket subscription (RANDOO_WS_<NETWORK>) adds a fast path that fulfills in the block after the request.

The VRF proving keys and the gas wallets are separate keys, and they never leave the operator machine. The process refuses to start if a chain's VRF key equals its gas wallet or another chain's VRF key. The playground's simulated network runs on Convex, not in this process.

# In workers/. Per-network variables take an upper-case suffix with underscores,
# such as RANDOO_VRF_SK_BASE_SEPOLIA.
export RANDOO_NETWORKS=ronin,saigon,base,base-sepolia,robinhood,robinhood-testnet
export RANDOO_COORDINATOR=0xC66eB2e7EE91145875000Ad46B55600000000001
export RANDOO_ORACLE_PK=0x...       # gas wallet, shared, or per network as RANDOO_ORACLE_PK_<NETWORK>
export RANDOO_VRF_SK_RONIN=0x...    # one VRF proving key per network, from src/keygen.ts <network>
export RANDOO_VRF_SK_SAIGON=0x...
export RANDOO_WS_RONIN=wss://...    # optional: the next-block fast path
export RANDOO_MAX_FEE_GWEI=100      # optional fee cap per gas; a per-network suffix is allowed
npm start

# Per network: head, wallet balance, key hash, last error, feed status,
# divergence, in-flight transactions, latency percentiles and the last 20 requests.
curl -s localhost:8788/health