Skip to main content

Hiro Archiver

What is the Hiro Archiver

The purpose of the Hiro Archiver is to enable developers and users of the Hiro ecosystem to download and use any of the published datasets needed to run a Stacks environment. This is a public service Hiro offers as a benefit to the Stacks community.

How to download

Important note: the blockstack-publish bucket has been deprecated and should no longer be used.

Hiro pushes out new datasets nightly. The best way to download these datasets is by constructing a download link.

The URL format is as follows:

Base UrlEnvServiceFile

The links shown in the table above will always point to the latest of the version specified. A previous day's version may also be pulled by simply replacing latest with the date formatted as yyyymmdd. Use the table below for current versions.


Archives are generated in the format {ENV}-{SERVICE}-{VERSION}-{YYYYMMDD}.tar.gz. For example,mainnet-blockchain-api-5.0.0-20221013.tar.gz.

Here are a couple of examples of how a download link can be generated for a specific dataset:

[testnet postgres database from August 26, 2022]

How to use

Importing the API .tsv

The api .tsv location is configurable by setting the STACKS_EXPORT_EVENTS_FILE env var of the application. Un-tar the file after downloading.

tar -xvf mainnet-blockchain-api-4.0.3-latest.tar.gz -C /root/api/stacks-node-events.tsv

Importing the blockchain chainstate

The location of the chainstate is configurable by modifying working_dir parameter under the [node] section of the Config.toml file. Un-tar the file after downloading. An example is shown below.

tar -xvf mainnet-blockchain- -C /root/stacks-node/data/mainnet

tar -xvf mainnet-blockchain- -C /root/stacks-node/data/xenon

Importing the Postgresql database

A working Postgresql database is required. You do not need to un-tar the file prior to import.

runuser -l postgres -c 'pg_restore -v -C -d stacks_node_api stacks_node_postgres.tar.gz'

runuser -l postgres -c "psql -c \"alter user postgres with password {{ your awesome password }};\""