Node (Nœud)
OutilsEnglish: Node
Définition
Instance d'un client Ethereum (Geth, Nethermind, Erigon, Besu) qui participe au réseau. Un nœud complet (full node) stocke toute la blockchain et valide chaque transaction. Un nœud archive (archive node) stocke également tous les états historiques. Un light node ne stocke que les headers de blocs. Nécessaire pour interagir avec Ethereum sans dépendre d'un tiers.
Version anglaise
Instance of an Ethereum client (Geth, Nethermind, Erigon, Besu) participating in the network. A full node stores entire blockchain and validates every transaction. An archive node also stores all historical states. A light node only stores block headers. Required to interact with Ethereum without relying on a third party.
Exemple de Code
// Démarrer un nœud Geth (full node)
geth --http --http.api eth,net,web3 --syncmode snap
// Connexion à un nœud local (ethers.js)
const provider = new ethers.JsonRpcProvider("http://localhost:8545");
// Alternative : utiliser un nœud distant (Infura, Alchemy)
const provider = new ethers.JsonRpcProvider(
"https://mainnet.infura.io/v3/YOUR_KEY"
);Pages Liées
Pratique ce concept sur Solingo
Maîtrise Node (Nœud) avec des exercices interactifs et un IDE intégré.
Commencer gratuitement