From ef0a3a2a3bfea68bca2ff8bb0bfa13375172e199 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 3 Feb 2026 19:05:16 -0500 Subject: [PATCH] return block access lists in GetPayloadBodies*V2 --- beacon/engine/types.go | 5 +++-- eth/catalyst/api.go | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/beacon/engine/types.go b/beacon/engine/types.go index 27f11f3742..594507b62d 100644 --- a/beacon/engine/types.go +++ b/beacon/engine/types.go @@ -403,8 +403,9 @@ func BlockToExecutableData(block *types.Block, fees *big.Int, sidecars []*types. // ExecutionPayloadBody is used in the response to GetPayloadBodiesByHash and GetPayloadBodiesByRange type ExecutionPayloadBody struct { - TransactionData []hexutil.Bytes `json:"transactions"` - Withdrawals []*types.Withdrawal `json:"withdrawals"` + TransactionData []hexutil.Bytes `json:"transactions"` + Withdrawals []*types.Withdrawal `json:"withdrawals"` + AccessList *bal.BlockAccessList `json:"blockAccessList"` } // Client identifiers to support ClientVersionV1. diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index dae6b126e0..a2d615d9b6 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -1178,6 +1178,10 @@ func getBody(block *types.Block) *engine.ExecutionPayloadBody { result.Withdrawals = []*types.Withdrawal{} } + if block.AccessList() != nil { + result.AccessList = block.AccessList() + } + return &result }