Install dependencies
go mod tidy
make build
The crawler environment can be specified either by the --dev
or --prod
flag.
If neither flag is available, the crawler will try to determine the environment based on the host address of the ETHEREUM_RPC_URL
environment variable.
It will pick dev
if host is 127.0.0.1
or localhost
, otherwise it will pick prod
.
Run the crawler locally using a Hardhat network
go run github.com/consensusnetworks/crawler --dev --fork
Stream
./build/crawler stream
Crawl
./build/crawler crawl