Blogue
Nœuds d'archivage : explication basée sur des cas d'utilisation

Nœuds d'archivage : explication basée sur des cas d'utilisation

Olha Diachuk
April 29, 2024

Avez-vous déjà considéré la blockchain comme une solution élégante qui copie la structure atomique de l'univers ? Chaque nœud est un atome distinct et ils sont tous interconnectés. Peut-être n'avons-nous pas découvert que chaque atome sait tout sur ce qui s'est passé dans l'univers et stocke ces informations dans le cadre d'un système similaire à un registre décentralisé. Et chaque atome a sa fonction, tout comme les nœuds.

Aujourd'hui, nous allons vous faire un détour fantastique à la découverte des types de nœuds et de leurs rôles dans la blockchain, en nous concentrant sur le nœud d'archivage avec un zoom supplémentaire. Nos ingénieurs ont eu le plaisir de partager certains cas d'utilisation uniques de fournisseurs de nœuds mis en œuvre dans le cadre des projets, qui montrent à quel point les limites impossibles de la blockchain peuvent être contournées par le potentiel d'innovation. Dans cet article, nous avons choisi le nœud d'archive Ethereum comme exemple à expliquer.

Ethereum archive node: Definition and description

The contrast of concepts easily demonstrates the truth. So, we quickly look at the sisters of the archive node: full and light nodes. 

3 types of nodes explained

The Ethereum blockchain is technically a network of computers called nodes. 

Full nodes
store the entire Ethereum blockchain history, including every block, transaction, and smart contract ever executed. However, they only maintain the latest state (snapshot) of the network for the most recent few blocks, typically around 128. This allows them to verify incoming transactions and ensure everything runs according to plan. 

Additionally, full nodes can regenerate older states by re-executing transactions, although this can be computationally intensive. Ethereum full node size is currently around 1.1 TB, and it’s obviously going to grow.

Archive Nodes
. Built on the full node's capabilities, archive nodes take data retention to the next level. They not only store the complete blockchain data but also maintain a record of the historical state of every single block from the moment the chain exists. 

This allows the Ethereum archive node to serve requests for historical data efficiently, without needing to recompute everything from scratch.  However, this extensive data storage comes at a cost—archive type requests space bigger than Ethereum full node size—at least 10 TB for each.

Light Nodes.
Designed for efficiency, light nodes are the minimalists of the network family. They only download Ethereum block headers, containing the bare minimum of blockchain data needed to interact with the network. 

Light nodes rely on the full or archive types for all other data, working in a "need-to-use" mode. Their limited functionality prevents them from participating in network consensus (they can't be validators). However, they are still irreplaceable for simple tasks like checking balances, verifying transactions, or browsing event logs.

Type de nœud Fonctionnalité Cas d'utilisation Avantages
Léger Fonctionnalité limitée - Vérifier les soldes de portefeuille
- Vérifier les confirmations de transaction
- Parcourir les journaux d'événements
- Léger et efficace
- Exigences en ressources inférieures
- Adapté aux portefeuilles mobiles et aux interactions utilisateur de base
Complet Stocke l'historique complet de la blockchain - Vérifier les transactions et l'état du réseau
- Participer aux discussions du réseau
- Interagir directement avec Ethereum
- Contribue à la décentralisation et à la sécurité
- Confidentialité renforcée en ne dépendant pas des fournisseurs tiers
- Accès complet aux données historiques (nécessite un calcul)
Archivage Stocke l'historique complet de la blockchain et l'état historique de chaque bloc - Accéder aux données historiques sans recalculer
- Exécuter des analyses historiques ou des audits sur le réseau
- Accès supérieur aux données historiques
- Idéal pour les chercheurs, les analystes de données et les auditeurs de sécurité

The lifecycle of the Ethereum archive node

To understand how it works, we will examine its natural environment and lifecycle, focusing on the core functionalities.

1. Initialization and sync:

  • The archive node starts by downloading the entire Ethereum blockchain history, just like her full type sister. This includes all blocks, transactions, and smart contracts ever executed on the network.
  • During this initial sync, it also begins processing each block and recording the network state (account balances, smart contract storage) after every single block. This state essentially captures a snapshot of the network at that specific point in time.

The initial setup requires time, reliable bandwidth, and an experienced engineer on your side. You’d better trust us 🙂

2. Ongoing operations:

  • As new blocks are added to the Ethereum blockchain, the archive node continues processing them.
  • For each new block, it updates its internal state database, reflecting the changes caused by the transactions within that block (e.g., account balances changing after a transfer).
  • This ongoing process ensures the archive node maintains a constantly updated record of the entire blockchain history and the corresponding historical state for every block.

Typically, this stage takes hours, but it isn’t a strict limitation for our blockchain engineers.

3. Serving historical data requests:

  • When a user or application requests historical data from the archive node, it can retrieve it much faster than the full one.

    The archive node can directly access the relevant historical state of the network based on the requested timeframe, like taking an immersive trip back in time in the fast and furious Delorian.
  • This significantly reduces processing time and resources compared to a full node for historical data retrieval.

4. Pruning (as an option):

  • Over time, the amount of historical state data the archive node stores becomes enormous.
  • Some archive node clients offer optional "pruning" options. Pruning allows to discard historical state data older than a certain timeframe (e.g., more than a year) while still maintaining the complete blockchain history.
  • This helps with managing storage space requirements, especially for long-running archive nodes.

So there you have it. An archive node acts like a constantly updated historical archive of the Ethereum network. As a sentinel of memory that forgets nothing, it gives access to valuable insights about anything that happened in the network, keeping past certain and recorded.

You might already have guessed who must invest so much space and effort in expeditions to the historical center of the blockchain. 

Archive nodes fan club: Projects and individuals who use them

The historical data is a treasure for anyone who wants to know how blockchain will act in the future. Many personal investigators and projects build their business around retrieving data on the functionality of archive nodes.

Personal usage might be resourceful but fruitful: 

  • Advanced blockchain exploration—analyze historical trends, pinpoint specific on-chain events, or track wallet activity over extended periods.
  • Self-verification and security. Enhance trust by independently verifying the Ethereum blockchain history without relying on third-party data providers. This can be particularly valuable for users who prioritize self-custody of their crypto assets.
  • Personal research & development. Explore historical data for personal research projects, analyze DeFi protocols, track NFT collections, or develop new blockchain applications with a deeper understanding of network activity.

Regarding hardware, the requirements are fairly similar for both full and archive nodes, with disk space being the key differentiator. 

Node requires a fast CPU with at least four cores, 16GB of RAM (ideally 32GB), and an NVMe SSD. Storage space varies—a full node can function with 2TB, while archive nodes might require much more depending on the client software used (Geth being a storage hog). Finally, a stable and fast internet connection with at least 25 Mbps bandwidth is crucial for keeping your parts of infrastructure online and responsive.

The number of third-party providers and services has grown on the archive nodes' functionality:

Groupe Objectif Avantage Exemple fourni
Entreprises d'analyse de données blockchain Analyse de marché et recherche Analyser les données historiques pour fournir des informations sur la performance des jetons, les tendances DeFi et le comportement des utilisateurs. Ces données peuvent être utilisées pour créer des rapports, développer des stratégies d'investissement et informer le développement de produits. Chainalysis, Kaiko, Messari, Nansen
Entreprises de sécurité et d'audit Audits de sécurité améliorés et détection de menaces Remonter les transactions suspectes, identifier les vulnérabilités dans les contrats intelligents et analyser l'activité du réseau pour les risques potentiels de sécurité. ConsenSys Diligence, OpenZeppelin, Trail of Bits
Fournisseurs d'infrastructure blockchain Accès fiable aux données et infrastructure Exécuter leurs propres nœuds d'archive ou s'associer avec un fournisseur de nœuds pour offrir un accès aux données historiques à leurs clients. Cela permet aux développeurs et aux entreprises de construire des applications avec un riche contexte historique. Dysnix, Infura, Alchemy, QuickNode, GetBlock.io
Explorateurs de blockchain et plates-formes de données Exploration complète des données en chaîne Fournir aux utilisateurs des fonctionnalités de recherche avancées, des visualisations de données historiques et des capacités d'analyse en chaîne. Etherscan, Blockchair, Dune Analytics

Both platforms and individuals use archive nodes for:

  • Faster information retrieval: Archive nodes can access historical data directly, eliminating the need for expensive transaction re-executions.
  • Decentralization: Archive nodes contribute to a more decentralized network by providing an alternative to centralized historical data providers.
  • Self-verification: Users can independently verify historical data without relying on third-party sources.

Running an archive node or getting access to one from a reliable provider is the best way to access the whole blockchain.

What about clients?

Several Ethereum client software options exist for running an archive node, each with advantages and storage requirements. Clientdiversity.org is a valuable resource for exploring these options and promoting a healthy level of client diversity within the network. 

Some time ago, the dragon of Geth (OpenEthereum, named later) was deprecated, giving life to the separated branches of clients with specialized functionality. A more modular and efficient client ecosystem within the Ethereum space gives users a wider range of blockchain choices in this chocolate shop.

Here are some of the most popular archive node clients:

Erigon

Erigon - popular archive node clients
  • Strong sides: It is lightweight and efficient, making it a good choice for users with limited storage space. It also has faster startup and synchronization and was actively developed with a strong community.
  • Weaknesses: Not as feature-rich as some other clients.

Besu

Hyperledger Besu Ethereum client
  • Pros: It is an enterprise-grade client with features like scalability and permissioned networks. It was actively developed with a focus on security and stability.
  • Cons: It can have higher resource requirements than Erigon. Might be overkill for basic archive node needs.

Nethermind

Nethermind - The simplest solutions to the hardest problems in blockchain
  • Plus: The modular client architecture allows for customization and integration with other tools. It has been actively developed with a growing community.
  • Minus: Might have a slightly steeper learning curve than Go-based clients like Erigon.

Do you need an archive node? Dysnix has it!

If you don’t want to sit over documentation of blockchain clients and welcome the sunrise with a bit of frustration, yet without running a node, just ask us to help. We can give you the fastest access and customize any part of infrastructure for you.

We have met the expectations of the biggest blockchain players in the market, so we’ll be glad to help anyone.

Meet us here, in our Web3 chatting lounge, or just drop us a line. Always glad to help.

And thank you for reading 🙂

Olha Diachuk
Writer at Dysnix
10+ years in tech writing. Trained researcher and tech enthusiast.
Table des matières
Articles connexes
Abonnez-vous au blog
La meilleure source d'informations pour le service client, les conseils de vente, les guides et les meilleures pratiques du secteur. Joignez-vous à nous.
Merci de votre inscription au blog Dysnix
Vous serez désormais le premier à savoir quand nous publierons un nouvel article
J'ai compris
Oups ! Une erreur s'est produite lors de l'envoi du formulaire.
Copié dans le presse-papiers
Collez-le où vous voulez