Fastest way to pull down evm block files from s3
This script automates syncing massive S3 object stores in a safe, resumable, and time-tracked way. The traditional s3 sync
is just wayy to slow.
- β
Auto-installs nidor1998/s3sync (latest release) into
~/.local/bin
- β
Sequential per-prefix syncs (e.g.,
21000000/
,22000000/
, β¦) - β
Per-prefix timing:
22000000 took 12 minutes!
- β Total runtime summary at the end
- β Designed for tiny files at scale (EVM block archives)
- β Zero-config bootstrap β just run the script
Instead of cloning a full repo, you can just download the runner script directly:
curl -L -o s3sync-runner.sh https://raw.githubusercontent.com/wwwehr/hl-evm-block-sync/refs/heads/master/sync.sh
chmod +x s3sync-runner.sh
./s3sync-runner.sh
Skipping to relevant block section
./s3sync-runner.sh --start-at 30000000
The script will:
- Install or update s3sync into ~/.local/bin
- Discover top-level prefixes in your S3 bucket
- Sync them one at a time, printing elapsed minutes
Edit the top of s3sync-runner.sh if needed:
BUCKET="hl-testnet-evm-blocks" # could be hl-mainnet-evm-blocks
REGION="ap-northeast-1" # hardcoded bucket region
DEST="$HOME/evm-blocks-testnet" # local target directory (this is what nanoreth will look at)
WORKERS=512 # worker threads per sync (lotsa workers needs lotsa RAM)
[2025-08-20 20:01:02] START 21000000
[2025-08-20 20:13:15] 21000000 took 12 minutes!
[2025-08-20 20:13:15] START 22000000
[2025-08-20 20:26:40] 22000000 took 13 minutes!
[2025-08-20 20:26:40] ALL DONE in 25 minutes.
This runner was built as part of the Hyperliquid DEX Hackathon to accelerate:
- βοΈ Blockchain archive node ingestion
- π EVM block dataset replication
- π§© DEX ecosystem data pipelines