From b29ff1878eecd0daae7d98a00e2542a06e401863 Mon Sep 17 00:00:00 2001 From: Joowon Yun <40225835+JoowonYun@users.noreply.github.com> Date: Mon, 11 Nov 2024 18:42:10 +0900 Subject: [PATCH] fix: update API endpoint for latest block height (#233) --- src/hooks/useAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useAPI.ts b/src/hooks/useAPI.ts index 4b32c7bd..eff21560 100644 --- a/src/hooks/useAPI.ts +++ b/src/hooks/useAPI.ts @@ -124,7 +124,7 @@ const useAPI = (version: ApiVersion = "v1") => { const getLatestBlockHeight = useCallback(async () => { const { data } = await axios.get( - `${network.lcd}/blocks/latest`, + `${network.lcd}/cosmos/base/tendermint/v1beta1/blocks/latest`, ); return data.block.header.height; }, [network.lcd]);