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.
Now that you have registered the node with the latest version, install v1.2.0-archive.
# Get the v1.2.0-archive binarieswget"https://github.com/scrtlabs/SecretNetwork/releases/download/v1.2.0-archive/secretnetwork_1.2.0-archive_amd64.deb"# Install the v1.2.0-archive binariessudodpkg-isecretnetwork_1.2.0-archive_amd64.deb
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).