Use the Stacks Blockchain Archive
Where to Download Archives
Stacks blockchain archives for each network can be found at the following locations:
- mainnet: https://archive.hiro.so/mainnet/stacks-blockchain/
- testnet: https://archive.hiro.so/testnet/stacks-blockchain/
The file name patterns are as follows:
- archive:
<NETWORK>-stacks-blockchain-<VERSION>-<DATE(YYYYMMDD)>.tar.gz
- shasum:
<NETWORK>-stacks-blockchain-<VERSION>-<DATE(YYYYMMDD)>.sha256
There is a continually updated archive and shasum which always points to the most recent upload:
- archive:
<NETWORK>-stacks-blockchain-latest.tar.gz
- shasum:
<NETWORK>-stacks-blockchain-latest.sha256
or the most recent upload for a particular version:
- archive:
<NETWORK>-stacks-blockchain-2.3.0.0.2-latest.tar.gz
- shasum:
<NETWORK>-stacks-blockchain-2.3.0.0.2-latest.sha256
Restoring a Stacks Blockchain Node Using the Hiro Archive
- Download the archive and shasum for the appropriate network
- Verify the archive with the shasum
- Extract the archive into the desired directory
# Target directory must already exist
tar -zxvf <ARCHIVE FILE> -C /target/directory - Configure the
working_dir
property in your Stacks blockchain node Config.toml file to match the directory you extracted the archive to. - Launch your Stacks blockchain node. You can use one of these example configuration files as a reference.
- Verify the dataset is being used by comparing your nodes local block height with Hiro's. If the block height matches or is close to Hiro's block height, the restoration was successful.
- It may take a few minutes for the local node to respond on this endpoint.
- Your block height may be up to a few hundred blocks away from Hiro's depending on the age of the archive. It should catch up relatively quickly.