diff --git a/rpc/events.go b/rpc/events.go index 943315c3b5..a7298486f8 100644 --- a/rpc/events.go +++ b/rpc/events.go @@ -78,7 +78,7 @@ func (h *Handler) SubscribeNewHeads(ctx context.Context) (uint64, *jsonrpc.Error case <-subscriptionCtx.Done(): return case header := <-headerSub.Recv(): - resp, err := json.Marshal(jsonrpc.Request{ + resp, err := json.Marshal(SubscriptionResponse{ Version: "2.0", Method: "juno_subscribeNewHeads", Params: map[string]any{