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 }