BR Academy
0%
How BNB Chain Works·Lesson 5 of 33·8 min

BNB Chain Architecture

To reason about BNB Chain clearly, it helps to separate its architecture into layers, each with a distinct job. This lesson walks through those layers from the bottom up: the consensus layer, the execution layer, and the surrounding infrastructure that makes the network usable.

The consensus layer is the set of validators responsible for agreeing on the order of transactions and producing blocks. This is the layer that determines who gets to add the next block to the chain and when that block becomes final (irreversible in practice). BNB Smart Chain's consensus layer is a bounded, rotating validator set — covered in full in the next lesson — which is the main structural choice that shapes everything else about the network's speed, cost, and centralization profile.

The execution layer is the EVM-compatible environment where smart contracts actually run. When a user sends a transaction that calls a smart contract — swapping tokens on a decentralized exchange, for example — the execution layer is what interprets the contract's code, updates account balances and contract storage, and computes the gas cost of doing so. Because this layer is EVM-compatible, it can run contract code written in the same languages and compiled the same way as Ethereum contracts, which is the technical reason redeployment across EVM chains is relatively simple (as covered in Module 1).

Surrounding infrastructure is everything that makes the chain practically usable by people and applications, without being part of the core protocol itself. This includes: RPC (remote procedure call) nodes, which are servers that let wallets and applications actually read chain data and submit transactions without running their own full node; block explorers, public websites that let anyone look up transactions, addresses, and contract code in a readable form; and bridges, which are applications (with their own, separate security model) that let assets move between BNB Chain and other networks. It is worth being precise here: RPC providers and block explorers are convenience infrastructure, typically run by third parties (though official ones exist too) — they are not part of core consensus, and their availability or accuracy is a separate risk from the chain's own security.

Finally, remember that opBNB and BNB Greenfield (introduced in Module 1) are architecturally distinct from BNB Smart Chain: opBNB is a separate execution environment that periodically settles back to BNB Smart Chain, and Greenfield is a separate storage network that links to BNB Smart Chain for payments and permissions. When you see "BNB Chain architecture" discussed broadly, it usually means this whole family; when discussing a specific transaction or application, you almost always mean BNB Smart Chain specifically unless stated otherwise.

It is useful to separate two kinds of failure that can occur at these different layers, because they have very different consequences and causes. A fault at the consensus layer — a bug in how validators agree on blocks, or a coordinated failure among a large share of the active set — threatens the integrity of the chain itself: the shared record of who owns what could, in the worst case, become disputed or reversed. A fault at the surrounding-infrastructure layer — an RPC provider going down, or a particular block explorer displaying stale data — is inconvenient and can disrupt an application's user experience, but it does not threaten the underlying chain's own correctness, because the chain's actual state is still being correctly maintained by the consensus and execution layers regardless of whether any one third-party convenience service is working. Knowing which layer an incident belongs to is a practical skill for anyone operating or depending on an application built on BNB Chain.

It is also worth naming who actually runs each layer, since that answers a natural follow-up question of "whose infrastructure is this, exactly?" The consensus layer is run collectively by the active validator set (Module 2's next lesson covers exactly who they are and how they qualify). The execution layer's rules are defined by the protocol itself and executed identically by every validator processing a block, so no single party "runs" it in isolation — it is a shared, enforced ruleset rather than a service. Surrounding infrastructure, by contrast, is often run by independent companies or community operators who choose to provide RPC access or explorer services, sometimes for a fee and sometimes for free, entirely separate from the validator set that secures the chain itself.

Worked Example

Trace one transaction end to end, layer by layer. A user opens their wallet and signs a transaction — say, sending a token to a friend. That signed transaction is broadcast to the network and enters the "mempool," a holding area of pending, not-yet-included transactions that validators draw from. When it is a validator's turn in the rotation (consensus layer), that validator selects transactions from the mempool — including this one — and assembles them into a candidate block. The execution layer processes each transaction in that block, updating account balances accordingly and computing the gas actually consumed. Once enough of the validator set has signed off on the block (consensus layer again), it is considered finalized, and a block explorer (surrounding infrastructure) will now show the transaction as confirmed, with its block number, timestamp, and gas used all visible to anyone who looks it up.

Now suppose, partway through this process, the wallet's default RPC provider happens to be experiencing downtime. The user might see a delayed or failed-looking submission in their wallet interface — but this says nothing about whether the consensus and execution layers are functioning correctly. Switching the wallet to a different RPC endpoint (many wallets allow this) would likely let the same signed transaction reach the mempool successfully, because the underlying chain was never the problem — only one particular convenience service sitting in front of it was.

Exercise

Sketch the architecture diagram from memory: draw three labeled boxes — execution layer, consensus layer, and one piece of surrounding infrastructure (RPC node, block explorer, or bridge) — and annotate where, in your own words, a transaction "sits" at each of the three stages described in the worked example (signed and pending, included in a candidate block, finalized and queryable). Keep it simple; the goal is to internalize the sequence, not to produce a polished diagram. Then write one sentence distinguishing a consensus-layer fault from a surrounding-infrastructure fault, using the RPC-downtime scenario above as your example of the latter.

Recap

  • BNB Chain architecture splits into a consensus layer (validator agreement), an execution layer (EVM smart-contract processing), and surrounding infrastructure (RPC nodes, explorers, bridges).
  • A transaction moves from wallet signature, through the mempool, into a validator-proposed block, to finalized state — each layer plays a distinct role in that path.
  • opBNB and BNB Greenfield are architecturally separate from BNB Smart Chain, even though all three fall under the "BNB Chain" umbrella, and a fault in surrounding infrastructure (like an RPC outage) is a different, less severe category of problem than a fault in consensus itself.

Resources

  • BNB Chain official documentation (docs.bnbchain.org) — architecture reference for BNB Smart Chain's consensus and execution layers.
  • BscScan (bscscan.com) — public block explorer to trace a transaction through pending, included, and finalized states.
  • GitHub — BNB Chain client repositories (github.com/bnb-chain) — source code for the consensus and execution layers.