From a0f23907459213e2711feeb1d977c5cf8dcfc9bf Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Thu, 23 Apr 2026 16:08:48 +0200 Subject: [PATCH] internal/ethapi: add BAL to rpc --- internal/ethapi/api.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 58414b3a87..d882256c49 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -994,6 +994,9 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} { if head.SlotNumber != nil { result["slotNumber"] = hexutil.Uint64(*head.SlotNumber) } + if head.BlockAccessListHash != nil { + result["blockAccessListHash"] = head.BlockAccessListHash + } return result } @@ -1029,6 +1032,9 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param if block.Withdrawals() != nil { fields["withdrawals"] = block.Withdrawals() } + if block.AccessList() != nil { + fields["blockAccessList"] = block.AccessList() + } return fields }