From 3c48b836789c4e2e6c224b0c87e4573deabc0d47 Mon Sep 17 00:00:00 2001 From: SergeevDmitry Date: Mon, 3 Jun 2024 16:31:53 +0300 Subject: [PATCH] Use GET /eth/v2/beacon/blocks endpoint --- beacon/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon/client.go b/beacon/client.go index a4e8324..d8c8502 100644 --- a/beacon/client.go +++ b/beacon/client.go @@ -161,7 +161,7 @@ func (c *Client) ProposerAssignments(epoch uint64) (*types.EpochProposerAssignme } func (c *Client) ExecutionBlockNumber(slot uint64) (uint64, error) { - url := fmt.Sprintf("%s/eth/v1/beacon/blocks/%d", c.endpoint, slot) + url := fmt.Sprintf("%s/eth/v2/beacon/blocks/%d", c.endpoint, slot) resp, err := c.httpClient.Get(url)