internal/ethapi: add BAL to rpc

This commit is contained in:
MariusVanDerWijden 2026-04-23 16:08:48 +02:00
parent d45a9771ed
commit a0f2390745

View file

@ -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
}