Skip to content

Commit

Permalink
fix: update API endpoint for latest block height (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoowonYun authored Nov 11, 2024
1 parent d98b901 commit b29ff18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const useAPI = (version: ApiVersion = "v1") => {

const getLatestBlockHeight = useCallback(async () => {
const { data } = await axios.get<LatestBlock>(
`${network.lcd}/blocks/latest`,
`${network.lcd}/cosmos/base/tendermint/v1beta1/blocks/latest`,
);
return data.block.header.height;
}, [network.lcd]);
Expand Down

0 comments on commit b29ff18

Please sign in to comment.