@@ -161,6 +161,7 @@ func (s *Service) builderEndpoints(stater lookup.Stater) []endpoint {
161161 const namespace = "builder"
162162 return []endpoint {
163163 {
164+ // Deprecated: use SSE from /eth/v1/events for `Payload Attributes` instead
164165 template : "/eth/v1/builder/states/{state_id}/expected_withdrawals" ,
165166 name : namespace + ".ExpectedWithdrawals" ,
166167 middleware : []middleware.Middleware {
@@ -225,6 +226,7 @@ func (s *Service) validatorEndpoints(
225226 const namespace = "validator"
226227 return []endpoint {
227228 {
229+ // Deprecated: use /eth/v2/validator/aggregate_attestation instead
228230 template : "/eth/v1/validator/aggregate_attestation" ,
229231 name : namespace + ".GetAggregateAttestation" ,
230232 middleware : []middleware.Middleware {
@@ -253,6 +255,7 @@ func (s *Service) validatorEndpoints(
253255 methods : []string {http .MethodPost },
254256 },
255257 {
258+ // Deprecated: use /eth/v2/validator/aggregate_and_proofs instead
256259 template : "/eth/v1/validator/aggregate_and_proofs" ,
257260 name : namespace + ".SubmitAggregateAndProofs" ,
258261 middleware : []middleware.Middleware {
@@ -583,6 +586,7 @@ func (s *Service) beaconEndpoints(
583586 methods : []string {http .MethodGet },
584587 },
585588 {
589+ // Deprecated: use /eth/v2/beacon/blocks instead
586590 template : "/eth/v1/beacon/blocks" ,
587591 name : namespace + ".PublishBlock" ,
588592 middleware : []middleware.Middleware {
@@ -593,6 +597,7 @@ func (s *Service) beaconEndpoints(
593597 methods : []string {http .MethodPost },
594598 },
595599 {
600+ // Deprecated: use /eth/v2/beacon/blinded_blocks instead
596601 template : "/eth/v1/beacon/blinded_blocks" ,
597602 name : namespace + ".PublishBlindedBlock" ,
598603 middleware : []middleware.Middleware {
@@ -632,6 +637,7 @@ func (s *Service) beaconEndpoints(
632637 methods : []string {http .MethodGet },
633638 },
634639 {
640+ // Deprecated: use /eth/v2/beacon/blocks/{block_id}/attestations instead
635641 template : "/eth/v1/beacon/blocks/{block_id}/attestations" ,
636642 name : namespace + ".GetBlockAttestations" ,
637643 middleware : []middleware.Middleware {
@@ -668,6 +674,7 @@ func (s *Service) beaconEndpoints(
668674 methods : []string {http .MethodGet },
669675 },
670676 {
677+ // Deprecated: use /eth/v2/beacon/pool/attestations instead
671678 template : "/eth/v1/beacon/pool/attestations" ,
672679 name : namespace + ".ListAttestations" ,
673680 middleware : []middleware.Middleware {
@@ -754,6 +761,7 @@ func (s *Service) beaconEndpoints(
754761 methods : []string {http .MethodPost },
755762 },
756763 {
764+ // Deprecated: use /eth/v2/beacon/pool/attester_slashings instead
757765 template : "/eth/v1/beacon/pool/attester_slashings" ,
758766 name : namespace + ".GetAttesterSlashings" ,
759767 middleware : []middleware.Middleware {
@@ -876,6 +884,7 @@ func (s *Service) beaconEndpoints(
876884 methods : []string {http .MethodGet , http .MethodPost },
877885 },
878886 {
887+ // Deprecated: no longer needed post Electra
879888 template : "/eth/v1/beacon/deposit_snapshot" ,
880889 name : namespace + ".GetDepositSnapshot" ,
881890 middleware : []middleware.Middleware {
0 commit comments