@reservoir0x/relay-kit-hooks
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
14 lines • 924 B
TypeScript
import { type paths } from '@reservoir0x/relay-sdk';
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query';
type TokenPriceQuery = paths['/currencies/token/price']['get']['parameters']['query'] & {
referrer?: string;
};
export type TokenPriceResponse = paths['/currencies/token/price']['get']['responses']['200']['content']['application/json'];
type QueryType = typeof useQuery<TokenPriceResponse, DefaultError, TokenPriceResponse, QueryKey>;
type QueryOptions = Parameters<QueryType>['0'];
export declare const queryTokenPrice: (baseApiUrl?: string, options?: TokenPriceQuery, headers?: HeadersInit) => Promise<TokenPriceResponse>;
export default function (baseApiUrl?: string, options?: TokenPriceQuery, queryOptions?: Partial<QueryOptions>): import("@tanstack/react-query").UseQueryResult<{
price?: number | undefined;
}, Error>;
export {};
//# sourceMappingURL=useTokenPrice.d.ts.map