Skip to content

Commit cc7eca0

Browse files
authored
Update Dune Balances API url to use V1 API for EVM
The Dune Balances API has moved to V1: https://docs.dune.com/echo/evm/balances
1 parent 1f1ca1a commit cc7eca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/src/hooks/useDuneBalances.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export default (address?: string, queryOptions?: Partial<QueryOptions>) => {
4242
const response = (useQuery as QueryType)({
4343
queryKey: ['useDuneBalances', address],
4444
queryFn: () => {
45-
let url = `https://api.dune.com/api/beta/balance/${address?.toLowerCase()}?chain_ids=all&exclude_spam_tokens=true`
45+
let url = `https://api.dune.com/api/echo/v1/balances/evm/${address?.toLowerCase()}?chain_ids=all&exclude_spam_tokens=true`
4646
if (isSvmAddress) {
47-
url = `https://api.dune.com/api/beta/balance/svm/${address}?chain_ids=all&exclude_spam_tokens=true`
47+
url = `https://api.dune.com/api/echo/beta/balances/svm/${address}?chain_ids=all&exclude_spam_tokens=true`
4848
}
4949

5050
if (isBvmAddress) {

0 commit comments

Comments
 (0)