An Ethereum validator is a set of keys backed by at least 32 ETH that the beacon chain uses to propose blocks and vote (attest) on them. You become one by sending a deposit to the deposit contract, waiting in an activation queue, then performing duties every epoch for rewards. Since the Pectra upgrade (May 2025), a validator with 0x02 compounding credentials can hold an effective balance up to 2,048 ETH. Withdrawals are automatic: a protocol "sweep" pays excess balance to the validator's withdrawal address, and a full exit returns everything after the exit queue and a delay of about 27 hours. Exits and partial withdrawals can now also be triggered from the withdrawal address itself (EIP-7002), not only by the validator's signing key.
What does a validator actually do?
Time on Ethereum's beacon chain is split into slots of 12 seconds and epochs of 32 slots (6.4 minutes). Every active validator has three kinds of duty:
- Attest once per epoch. Each validator is assigned to one slot per epoch and votes for the chain head, the current checkpoint (target) and the last justified checkpoint (source). Attestations make up most of a validator's income.
- Propose a block when selected. Proposers are chosen pseudo-randomly, weighted by effective balance. A proposal earns consensus rewards plus the execution layer's priority fees and any MEV, paid to the validator's fee recipient address.
- Serve on the sync committee. 512 validators are picked every 256 epochs (about 27 hours) to sign each block header for light clients.
Rewards scale with a base reward proportional to one over the square root of total staked ETH. Missing a duty costs roughly what performing it would have earned, so a day offline loses about a day's rewards, not the stake. If you want the background on why stake replaces hash power here, see how proof of stake differs from proof of work. For how proposers capture ordering value, see what MEV is.
How do I become a validator?
A validator has two separate pieces of authority, and keeping them apart is the most important operational decision.
- Signing key (BLS). Used by the validator client for every attestation and proposal. It must be online, so it is the key most exposed to theft or misuse.
- Withdrawal credentials. Set in the deposit and recorded in beacon state. They decide where money goes on withdrawal and who may trigger exits from the execution layer.
The deposit is a call to the deposit contract at 0x00000000219ab540356cBB839Cbe05303d7705Fa carrying the BLS public key, withdrawal credentials, amount and a BLS signature over them. Tools such as ethstaker-deposit-cli derive keys from a mnemonic and produce the deposit data; protect that mnemonic as described in how seed phrases work.
Since Pectra, deposits are read directly from execution-layer receipts (EIP-6110) instead of the old voting process that lagged by many hours. Deposits then join a pending queue and activate as activation churn allows. Churn is now measured in ETH, not validator count: at current stake levels it is capped at 256 ETH per epoch, about 57,600 ETH per day, so the queue can stretch to weeks when demand is high.
Which withdrawal credential type should I use?
| Prefix | What it is | Max effective balance | Excess paid out | Partial withdrawals on request |
|---|---|---|---|---|
0x00 | BLS withdrawal key (pre-2023 style) | 32 ETH | No, until converted | No |
0x01 | Execution address | 32 ETH | Everything above 32 ETH, automatically | No |
0x02 | Execution address, compounding | 2,048 ETH | Everything above 2,048 ETH | Yes, down to 32 ETH |
0x00 validators convert to 0x01 with a one-time signed BLSToExecutionChange message. A 0x01 validator converts to 0x02 by submitting a consolidation request to the EIP-7251 system contract (0x0000BBdDc7CE488642fb579F8B00f3a590007251) with itself as both source and target. The same contract can merge several 32 ETH validators into one 0x02 validator, so you run fewer keys and rewards compound instead of being swept.
Rewards are calculated on effective balance, which moves in whole ETH with a 0.25 ETH hysteresis, so compounding happens in 1 ETH steps.
How do withdrawals work?
There is no "withdraw" button on the consensus layer. The protocol runs a withdrawal sweep: each block includes up to 16 withdrawals, taken by walking through validators in index order (up to 16,384 checked per block) and paying any that qualify. Up to 8 of those 16 can come from the queue of requested partial withdrawals. Payouts are balance credits, not transactions: no gas, and no contract code runs.
- Skimming (partial withdrawal). An active
0x01validator with more than 32 ETH, or a0x02validator with more than 2,048 ETH, has the excess paid out when the sweep reaches it. With roughly a million validators, a full cycle takes several days. - Requested partial withdrawal. A
0x02validator can ask for a specific amount through EIP-7002, as long as at least 32 ETH remains. - Full exit. The validator signs a voluntary exit (or the withdrawal address submits an EIP-7002 request with amount 0). It gets an exit epoch from the exit churn, keeps its duties until then, becomes withdrawable 256 epochs (about 27 hours) later, and is paid in full on the next sweep.
Triggering an exit from the withdrawal address
EIP-7002 lets the address in 0x01 or 0x02 credentials exit a validator without the signing key. This matters for staking pools, contract withdrawal addresses and anyone whose operator disappears. The request is 56 bytes: the 48-byte public key followed by a big-endian uint64 amount in gwei (0 means full exit). Calling the contract with empty calldata returns the current fee:
import { concat, createPublicClient, createWalletClient, hexToBigInt, http, toHex } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { mainnet } from "viem/chains";
const WITHDRAWAL_REQUEST = "0x00000961Ef480Eb55e80D19ad83579A64c007002";
const pubkey = "0x..." as `0x${string}`; // 48-byte validator public key
const amountGwei = 0n; // 0 = full exit; 1_000_000_000n = 1 ETH (0x02 only)
const transport = http(process.env.RPC_URL);
const publicClient = createPublicClient({ chain: mainnet, transport });
const wallet = createWalletClient({
account: privateKeyToAccount(process.env.WITHDRAWAL_ADDRESS_KEY as `0x${string}`),
chain: mainnet,
transport,
});
// Empty calldata = "what is the fee right now?"
const { data } = await publicClient.call({ to: WITHDRAWAL_REQUEST });
const fee = hexToBigInt(data!);
const hash = await wallet.sendTransaction({
to: WITHDRAWAL_REQUEST,
data: concat([pubkey, toHex(amountGwei, { size: 8 })]),
value: fee, // reverts if too low; overpayment is not refunded
});
console.log("request sent:", hash);
The fee starts at 1 wei and rises exponentially when requests exceed two per block, so read it just before sending. The transaction must come from the exact address in the withdrawal credentials; a request from anywhere else is accepted by the contract but ignored by the consensus layer. The EIP-7002 specification has the full encoding.
How long does each step take?
| Step | Typical time |
|---|---|
| Deposit recorded by beacon chain | Same block (EIP-6110), processed once finalised (about 13 minutes) |
| Activation | Depends on queue; churn caps entries at 256 ETH per epoch |
| Exit queue | Depends on queue; same 256 ETH per epoch cap for exits |
| Exit to withdrawable | 256 epochs, about 27 hours |
| Withdrawable to paid | Until the sweep reaches the validator, usually hours to days |
| Slashed validator withdrawable | 8,192 epochs, about 36 days |
You can watch a validator move through these states with the standard beacon API:
curl -s "$BEACON_URL/eth/v1/beacon/states/head/validators/$INDEX" | jq '.data | {
status,
balance,
effective_balance: .validator.effective_balance,
credentials: .validator.withdrawal_credentials,
exit_epoch: .validator.exit_epoch,
withdrawable_epoch: .validator.withdrawable_epoch
}'
Penalties and slashing
Ordinary penalties are small: missed attestations cost about what they would have earned. If the chain fails to finalise for more than four epochs, the inactivity leak starts draining offline validators faster, until the online ones again hold two thirds of stake.
Slashing is for provable misbehaviour: proposing two different blocks for one slot, or signing two conflicting attestations (a double vote or a surround vote). The usual cause is not malice but running the same keys on two machines, often during a migration or failover. A slashed validator:
- loses 1/4,096 of its effective balance immediately (about 0.0078 ETH at 32 ETH, 0.5 ETH at 2,048 ETH);
- is forced to exit and cannot withdraw for about 36 days, missing rewards throughout;
- takes a correlation penalty at the halfway point, proportional to three times the share of total stake slashed in the surrounding window. A lone mistake costs little; a mass slashing from a shared bug can cost most of the stake.
Consolidation doesn't change these proportions, but one double-signing incident can now hit up to 2,048 ETH.
Ways to stake
| Option | Who holds the keys | Main trade-off |
|---|---|---|
| Solo staking | You hold signing and withdrawal keys | Full control; you handle uptime and slashing protection |
| Distributed validator (DVT) | Signing key split across operators | Fault tolerance at the cost of coordination |
| Staking as a service | Operator holds signing key, you hold withdrawal address | Simpler; you trust the operator not to get slashed |
| Pooled or liquid staking | Protocol and its node operators | Small amounts, a liquid token; adds smart contract and governance risk |
| Exchange staking | The exchange | Simplest; custodial |
Institutions often make the withdrawal address a multisig; see how teams hold crypto with multisig or MPC. None of this is a recommendation to stake.
Checklist
- Use
0x01or0x02credentials pointing to an address you control; prefer0x02if you want compounding or requested partial withdrawals. - Keep the withdrawal address key offline; it can now exit your validators via EIP-7002.
- Never run the same signing key in two places. Keep slashing protection data when migrating clients.
- Check current queue lengths before planning around an activation or exit date.
- Treat sweep payouts as balance increases, not transactions: indexers that only watch transfers will miss them, as will contracts expecting a
receive()call. - Alert on missed attestations, and wait for finality as described in how many confirmations to wait for before treating a payout as settled.
Summary
| Topic | Key fact |
|---|---|
| Minimum to activate | 32 ETH |
| Maximum effective balance | 32 ETH (0x01), 2,048 ETH (0x02) since Pectra |
| Automatic payouts | Sweep, up to 16 withdrawals per block |
| Exit delay | Exit queue, then 256 epochs (about 27 hours) |
| Exit without signing key | EIP-7002 request from the withdrawal address |
Get the weekly commit
New blockchain deep dives every week.