The Pulse of the Network (Blocks)
Welcome to the lab! 🧪 To build a dApp, you first need to understand how the blockchain stores its "batch of changes." We call these Blocks.
On VeChainThor, a new block is generated approximately every 10 seconds, even if no transactions are published. Think of it like a steady heartbeat!
Important Update: VeChainThor recently upgraded its consensus to Delegated Proof of Stake (DPoS). It's more decentralized and sustainable than ever!
In JavaScript, we use the ThorClient to talk to the network. "Think of a block request like calling a library..." 📚
NICE!
You used the alias "best" to get the latest block. You can also ask for "genesis" (Block 0) or "finalized" (the last irreversible block).
You’re getting it! There are two main ways to read a block:
Compressed: Just the metadata and transaction IDs.
Expanded: Everything, including the full details of every transaction and their receipts!
Almost there!
Join our Telegram
