Archive Nodes
Creating Archives nodes is not possible as this time. Please use the provided API Archive nodes in API Endpoints Mainnet (Secret-4) if you need access to an Archive.
Archive All Blockchain Data.
An archive node keeps all the past blocks. An archive node makes it convenient to query the past state of the chain at any point in time. Finding out what an account's balance, stake size, etc at a certain block was, or which extrinsics resulted in a certain state change are fast operations when using an archive node. However, an archive node takes up a lot of disk space - nearly 2TB for secret-4
as of Feb 1, 2023.
More on hardware support here.
Note that syncing from scratch/following these instructions takes several weeks, since state-sync is not available for Archive Nodes.
To setup your archive node you can follow the instructions below:
Install latest secretd
secretd
To install secretd
, please visit Install secretd.
Setup the Node
Setup the node using the Running a Full Node guide. You should stop at the Set minimum-gas-price Parameter step.
Do NOT begin syncing yet!
Install v1.2.0-archive secretd
secretd
Now that you have registered the node with the latest version, install v1.2.0-archive
.
Set Pruning Parameter
Begin Syncing
Note that the secret-node
system file is created in a previous step.
If everything above worked correctly, the following command will show your node streaming blocks (this is for debugging purposes only, kill this command anytime with Ctrl-C). It might take a while for blocks to start streaming, so grab some 🍿 while you wait!
You now have an Archive node running!
Execute upgrades
Syncing a node from scratch means that from time to time you'll need to perform an upgrade (at the block height that the upgrade was originally took place on mainnet).
You will need to use the designated archive-node binaries when available. For the rest of the upgrades, use the binaries for the respective version from the releases page.
As of the writing of these lines, the upgrade timing (in block-height) are:
v1.3.0 - block height
3,343,000
(binaries).v1.4.0 - block height
5,309,200
(binaries).v1.5.0 - block height
5,941,700
(binaries).v1.6.0 - block height
6,537,300
(binaries).
For more detailed upgrade instructions, you can refer to the v1.5.0 upgrade instructions.
Last updated