Overview
Spin up a local test environment that includes:- Two Anvil forks: Ethereum Sepolia and Base Sepolia
- Rhinestone Orchestrator (mockestrator) wired to those forks via
rpcs.json
Prerequisites
- Docker and Docker Compose installed
- An Alchemy API key in your environment:
export ALCHEMY_API_KEY=...
Steps
1) Create rpcs.json
2) Create docker-compose.yaml
3) Local Endpoints
- Sepolia fork RPC:
http://localhost:30006 - Base Sepolia fork RPC:
http://localhost:30005 - Orchestrator:
http://localhost:3000
mockestrator (e.g., 3007:3000) and update the examples accordingly.
SDK Configuration
Point the SDK at the local Orchestrator and local RPCs.Troubleshooting
- Ensure
ALCHEMY_API_KEYis exported in your shell before starting Docker. - If containers appear unhealthy, check logs:
docker compose logs -f sepolia_forkdocker compose logs -f base_sepolia_forkdocker compose logs -f mockestrator
- For port conflicts, adjust the left-hand port mappings in
docker-compose.yaml.