paradigmxyz / cryo

cryo is the easiest way to extract blockchain data to parquet, csv, json, or python dataframes
Apache License 2.0
1.12k stars 97 forks source link

Using with reth: retrieving contracts starting from block 0 always fails #151

Open Cybourgeoisie opened 9 months ago

Cybourgeoisie commented 9 months ago

Version cryo commit 041f38b, latest as of writing

Platform Max OSX

Description

When using a reth archive node, using cryo contracts endpoint with block range starting at 0 always returns the following error:

Failed to get block: (code: -32001, message: Unknown block number, data: None)

The exact command used is:

cryo contracts -b 0:1000 --rpc http://192.168.1.183:8545 --compression gzip 6 -e chain_id --chunk-size 1000 --hex --requests-per-second 50

The same error appears when doing the following:

cryo contracts -b 0 --rpc http://192.168.1.183:8545