Pectra CLI
Supercharge your validator operations with our CLI
Last updated
Supercharge your validator operations with our CLI
Last updated
A powerful CLI tool for executing Ethereum validator operations — including consolidation, switching, and both partial and full withdrawals — with seamless batching enabled by EIP-7702.
The Pectra upgrade (Prague + Electra) introduces key validator enhancements: consolidation allows merging multiple validators into one to simplify management and reduce overhead; switch enables validators to update their BLS keys, supporting strategies like autocompounding without needing to exit and re-enter; and execution layer exits allow validators to exit directly via the execution layer, streamlining the exit process and enabling better integration with smart contracts and tooling.
This CLI leverages the Pectra.sol smart contract, designed to facilitate batch operations for Ethereum validator management tasks. It leverages EIP-7702 (Set EOA account code) to allow validator withdrawal Externally Owned Accounts (EOAs) to execute multiple operations (consolidation, credential switching, Execution Layer exits) in a single, atomic transaction.
This overcomes the limitation of the official Ethereum Foundation "system assembly" (sys-asm) contracts, which only permit one operation per transaction and require direct initiation by the withdrawal EOA.
Batch Switch: Update withdrawal credentials for multiple validators from 0x01 type to 0x02 type in a single transaction.
Batch Consolidate: Consolidate funds from multiple source validators to a single target validator in a single transaction.
Batch EL Exit: Perform partial or full exits for multiple validators from the execution layer.
Secure: Prompts for private key input securely at runtime; it's not stored in configuration files.
Dynamic Fee Calculation: Automatically fetches required fees per validator from the smart contract.
Secure, audited contract: The Pectra batch contract is open-source and has been independently audited by . 🔗 🛡️
📄
For more details, click below.