Follow these steps to get and set up the latest opBNB Reth FullNode/ArchiveNode snapshot from the Reth Snapshots page.
You have two options to download and extract the snapshot data.
- Download the snapshot file:
wget ${DOWNLOAD_LINK} -O opBNB-reth.tar.gz
- Verify the file's integrity using sha256sum:
sha256sum opBNB-reth.tar.gz
- Extract the data to the Reth path:
tar -zxvf opBNB-reth.tar.gz -C ${PATH_TO_RETH_DATA}
Use this option to download and extract the data in one step via piping:
wget ${DOWNLOAD_LINK} -O- | tar -zxvf - -C ${PATH_TO_RETH_DATA}
After the data has been extracted, you can start your opBNB Reth node with the following command:
export network=mainnet
export L2_RPC=https://opbnb-mainnet-rpc.bnbchain.org
op-reth node \
--datadir=${PATH_TO_RETH_DATA} \
--chain=opbnb-${network} \
--rollup.sequencer-http=${L2_RPC} \
--authrpc.addr="0.0.0.0" \
--authrpc.port=8551 \
--http \
--http.api="eth, net, txpool, web3, rpc" \
--full
export network=mainnet
export L2_RPC=https://opbnb-mainnet-rpc.bnbchain.org
op-reth node \
--datadir=${PATH_TO_RETH_DATA} \
--chain=opbnb-${network} \
--rollup.sequencer-http=${L2_RPC} \
--authrpc.addr="0.0.0.0" \
--authrpc.port=8551 \
--http \
--http.api="eth, net, txpool, web3, rpc"