Resolves the staker's EigenPod and encodes EigenPod.requestConsolidation(requests) — a single
transaction that consolidates N restaked validators. The pod forwards each request to the EIP-7251
consolidation predeploy with the pod itself as the caller, so depositor attribution is correct by
construction.
Set sourcePubkey equal to targetPubkey to switch a validator from 0x01 to 0x02 (compounding)
withdrawal credentials. Otherwise the source validator is consolidated into the target, which must
already have 0x02 credentials. All referenced validators must have their withdrawal credentials
pointed at the staker's EigenPod.
The transaction value covers the per-request predeploy fee plus a 10% buffer; the pod refunds any
excess. Only the pod owner or proof submitter can execute the transaction — it reverts otherwise.
Nonce handling: The nonce is computed at call time. If you prepare multiple transactions before broadcasting, they will share the same nonce and only the first will succeed. Broadcast and confirm each transaction before preparing the next.
400Invalid input, network, or no EigenPod deployed
