To download the Latest Snapshot visit https://en-backups.matterlabs.dev and copy the desired link.
Run the below command in screen as the download may take hours/day depending upon internet speed & snapshot size.
3
Start ZkSync Node
Example docker-compose file
4
Import Database
Ensure that your database has finished importing before proceeding to the next step. The DB size ~ 6618 GB (6.6 TB) .
{"jsonrpc":"2.0","id":1,"result":{"startingBlock":"0x0","currentBlock":"0x349b303","highestBlock":"0x36217dc"}}
# or
{"jsonrpc":"2.0","id":1,"result":false} # If block is synced or < 11 block behind
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_blockNumber", "params":[],"id":1}' http://localhost:3060