Camada de Execução (Execution Layer)
O componente de uma blockchain modular responsável pelo processamento de transações, execução de smart contracts e atualização do estado da rede, separado do consenso e da disponibilidade de dados.
Antes do 'The Merge' (setembro de 2022), clientes de execução como o Geth lidavam com transações e com o consenso Proof-of-Work. O Merge removeu a lógica PoW, transformando o Geth num cliente puro de Camada de Execução.
graph LR
Center["Camada de Execução (Execution Layer)"]:::main
Pre_smart_contracts["smart-contracts"]:::pre --> Center
click Pre_smart_contracts "/terms/smart-contracts"
Rel_consensus_layer["consensus-layer"]:::related -.-> Center
click Rel_consensus_layer "/terms/consensus-layer"
Rel_data_availability_layer["data-availability-layer"]:::related -.-> Center
click Rel_data_availability_layer "/terms/data-availability-layer"
Rel_account_abstraction["account-abstraction"]:::related -.-> Center
click Rel_account_abstraction "/terms/account-abstraction"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Explique como se eu tivesse 5 anos
Pense na [blockchain](/pt/terms/blockchain) como um restaurante. A Camada de Execução é a cozinha — recebe os pedidos (transações), segue as receitas ([smart contracts](/pt/terms/smart-contracts)) e faz a comida (atualiza o estado). A Camada de Consenso é o gerente — não cozinha, mas verifica se a cozinha seguiu as regras e finaliza o caixa. No [Ethereum](/pt/terms/ethereum) atual, a cozinha e o gerente são dois programas separados que conversam entre si.
🤓 Expert Deep Dive
A Engine API: A separação EL/CL exige um canal seguro. A CL atua como o 'motorista'. Usa engine_newPayload para entregar um bloco à EL para validação e engine_forkchoiceUpdated para definir a cabeça da cadeia. Clientes de Execução: A diversidade de clientes (Geth, Nethermind, Erigon, Besu) é crítica para impedir que um bug num cliente majoritário (Geth) paralise a rede. Rollups como EL: Na visão modular, os Rollups (Arbitrum, Optimism) são camadas puras de execução que desafogam o processamento da rede base (L1).
❓ Perguntas frequentes
What is the difference between the Execution Layer and the Consensus Layer?
The Execution Layer processes transactions, runs smart contracts (EVM), and updates user balances. The Consensus Layer does not process transactions; instead, it coordinates validators to vote on which blocks are valid and ensures the network agrees on a single, final history of the chain.
What were the Execution Layer and Consensus Layer called before The Merge?
Historically, the Execution Layer was referred to as 'Eth1' (the original Ethereum PoW chain), and the Consensus Layer was referred to as 'Eth2' (the Beacon Chain). The Ethereum Foundation deprecated these terms in favor of EL and CL to emphasize that they are two components of a single, unified network, not sequential upgrades.
How do Layer 2 Rollups fit into this model?
Layer 2 Rollups (like Arbitrum or Base) are essentially standalone execution layers. They handle all the heavy transaction processing off-chain, and then use Ethereum (Layer 1) strictly for consensus, data availability, and final settlement.