Node
A node is a server that is connected to other nodes that form the blockchain network. The server runs the Tezos specific software that has two main responsibilities:
- Handle the communication with other nodes using the gossip protocol1. Nodes exchange all the time information with each other, such as updating about new operations and blocks.
- Keep up-to-date the current context of the node, by applying all operations from the block to the local state.
Overview of Protocols 📑
/protocols
You can query the different protocols the node supports. You can do it with the following command from your terminal:
- localhost
- testnet
- mainnet
/chains/main/blocks/head
We are interested in identifying the current protocol the node is running. This call is one of the most important ones in getting the current state of the blockchain:
- Request
- Response
curl https://mainnet-tezos.giganode.io/chains/main/blocks/head
To further investigate the protocol PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb, we query for that identifier:
https://mainnet-tezos.giganode.io/protocols/PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb
- Interestingly this protocol is also called epidemic protocol, because the way peer-to-peer communication is established mimics how a biological virus spreads.↩