From fda71c4c49f79b786235343aca8846efe2a43ad0 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 912d65f8da..5001391bd3 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -995,6 +995,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 } @@ -1030,6 +1033,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 }