internal/ethapi: add BAL to rpc

This commit is contained in:
MariusVanDerWijden 2026-04-23 16:08:48 +02:00 committed by Jared Wasinger
parent d4d70e98e0
commit fda71c4c49

View file

@ -995,6 +995,9 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
if head.SlotNumber != nil { if head.SlotNumber != nil {
result["slotNumber"] = hexutil.Uint64(*head.SlotNumber) result["slotNumber"] = hexutil.Uint64(*head.SlotNumber)
} }
if head.BlockAccessListHash != nil {
result["blockAccessListHash"] = head.BlockAccessListHash
}
return result return result
} }
@ -1030,6 +1033,9 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
if block.Withdrawals() != nil { if block.Withdrawals() != nil {
fields["withdrawals"] = block.Withdrawals() fields["withdrawals"] = block.Withdrawals()
} }
if block.AccessList() != nil {
fields["blockAccessList"] = block.AccessList()
}
return fields return fields
} }