diff --git a/beacon/engine/epe_encode.go b/beacon/engine/epe_encode.go index 73deb8f0c6..c44d87ec4f 100644 --- a/beacon/engine/epe_encode.go +++ b/beacon/engine/epe_encode.go @@ -66,7 +66,11 @@ func (e ExecutionPayloadEnvelope) MarshalJSON() ([]byte, error) { b.RawValue(payload) b.Key("blockValue") - b.HexBigInt(e.BlockValue) + if e.BlockValue != nil { + b.HexBigInt(e.BlockValue) + } else { + b.Null() + } b.Key("blobsBundle") marshalBlobsBundle(&b, e.BlobsBundle)