MCPcopy Create free account
hub / github.com/evolify/dumpfun / useTrending

Function useTrending

common/hooks/api.ts:95–109  ·  view source on GitHub ↗
(duration: Duration)

Source from the content-addressed store, hash-verified

93}
94
95export function useTrending(duration: Duration) {
96 const url = `${TrendingUrl}/${duration}`
97 const { data, isLoading, isValidating, error, mutate } = useSWR(
98 url,
99 getTrending
100 )
101
102 return {
103 data,
104 isLoading,
105 isValidating,
106 error,
107 mutate,
108 }
109}
110
111export function useHolders(addr: string) {
112 const { data, isLoading, error, mutate } = useSWR<{

Callers 1

TrendingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected