Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Learn how to run Nexus as a Docker container
version: "3.8"
services:
nexus:
image: "whatsgood/nexus:latest"
container_name: nexus
ports:
- "4000:4000"
environment:
- 'NEXUS_NODE_PROVIDERS=[{"name": "eth.public", "url":"https://eth.public-rpc.com", "chainId": 1}]'
- 'NEXUS_CHAINS=[{"name": "mainnet", "chainId": 1, "blockTime": 15}]'
- 'NEXUS_RELAY_FAILURE=["cycle-requests", 5]'
- "NEXUS_RELAY_ORDER=random"
- "NEXUS_LOG_LEVEL=debug"
curl -X POST http://localhost:4000/1 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Was this page helpful?