Luganodes Docs
TwitterLinkedInMedium
  • Luganodes
  • Native ETH Staking
    • Features
      • Stake
      • Portfolio
  • Custodians
    • Fireblocks
    • Ledger
  • Networks
    • Overview
    • Active Networks
      • Aptos
      • Archway
      • Avail
      • Avalanche
      • bitsCruch
      • Canto
      • Cardano
      • Chiliz
      • Composable Finance
      • Concordium
      • Cosmos
      • Covalent
      • dYdX
      • Eigen Layer
      • Ethereum
      • Elixir
      • Flare
      • Gitopia
      • Kava
      • Kroma
      • Kusama
      • Lukso
      • MultiversX
      • Namada
      • Near
      • Neutron
      • Noble
      • Persistence
      • Polkadot
      • Polygon
      • Radix
      • Ronin
      • River
      • Saga
      • Solana
      • Stride
      • Sui
      • Tenet
      • Tron
      • Ton
      • Vanar
      • Walrus
      • Zilliqa
  • Staking APIs
    • Overview
    • Ethereum
      • Staking Guide
      • Authentication
      • Node Provisioning APIs
      • Consolidation & Switch
      • Exits
      • FAQs
    • Solana
      • Staking Guide
      • Staking
      • Withdrawals
  • TOOLS
    • Ethereum
      • Pectra CLI
    • Hyperliquid
      • Hypermon Monitoring Tool
    • Flare
      • FTSOv2 Monitoring Tool
    • Solana
      • Solana Indexer
    • Berachain
      • Berachain Indexer
Powered by GitBook
On this page
  • Background
  • Features
  1. TOOLS
  2. Ethereum

Pectra CLI

Supercharge your validator operations with our CLI

PreviousEthereumNextHyperliquid

Last updated 5 days ago

A powerful airgapped CLI tool for executing Ethereum validator operations — including consolidation, switching, and both partial and full withdrawals — with seamless batching enabled by EIP-7702.

Background

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. Moreover, the CLI is designed to be airgapped, ensuring security by allowing users to generate unsigned transactions without exposing sensitive keys. These transactions can then be signed externally using the appropriate withdrawal address in a secure, offline environment, and broadcasted manually to the network. This approach supports safe validator operations without compromising key custody.

Features

  • 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: Supports airgapped workflows by generating unsigned transactions that users can sign with their withdrawal address in a secure offline environment.

  • 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.

Quantstamp
View the contract repository
Read the full audit report
Audit Certificate
https://github.com/Luganodes/pectra-cli/tree/maingithub.com