@reservoir0x/relay-kit-hooks
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
24 lines • 1.41 kB
TypeScript
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query';
import { type paths } from '@reservoir0x/relay-sdk';
export type TrendingCurrenciesQuery = paths['/currencies/trending']['get']['parameters']['query'] & {
referrer?: string;
};
export type TrendingCurrenciesResponse = paths['/currencies/trending']['get']['responses']['200']['content']['application/json'];
type QueryType = typeof useQuery<TrendingCurrenciesResponse, DefaultError, TrendingCurrenciesResponse, QueryKey>;
type QueryOptions = Parameters<QueryType>['0'];
export declare const queryTrendingCurrencies: (baseApiUrl?: string, options?: TrendingCurrenciesQuery, headers?: Record<string, string>) => Promise<TrendingCurrenciesResponse>;
declare const _default: (baseApiUrl?: string, queryParams?: TrendingCurrenciesQuery, queryOptions?: Partial<QueryOptions>) => import("@tanstack/react-query").UseQueryResult<{
chainId?: number | undefined;
address?: string | undefined;
symbol?: string | undefined;
name?: string | undefined;
decimals?: number | undefined;
vmType?: "evm" | "svm" | "bvm" | "tvm" | "suivm" | "hypevm" | "tonvm" | undefined;
metadata?: {
logoURI?: string | undefined;
verified?: boolean | undefined;
isNative?: boolean | undefined;
} | undefined;
}[], Error>;
export default _default;
//# sourceMappingURL=useTrendingCurrencies.d.ts.map