@reservoir0x/relay-kit-ui
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
23 lines • 917 B
TypeScript
import { type Address, type GetBalanceErrorType, type ReadContractErrorType } from 'viem';
import type { QueryKey } from '@tanstack/react-query';
import type { AdaptedWallet, RelayChain } from '@reservoir0x/relay-sdk';
type UseBalanceProps = {
chain?: RelayChain;
address?: Address | string;
currency?: Address | string;
enabled?: boolean;
refreshInterval?: number;
wallet?: AdaptedWallet;
};
type UseCurrencyBalanceData = {
value?: bigint;
queryKey: QueryKey;
isLoading: boolean;
isError: boolean | GetBalanceErrorType | null;
error: boolean | ReadContractErrorType | Error | null;
isDuneBalance: boolean;
hasPendingBalance?: boolean;
};
declare const useCurrencyBalance: ({ chain, address, currency, enabled, refreshInterval, wallet }: UseBalanceProps) => UseCurrencyBalanceData;
export default useCurrencyBalance;
//# sourceMappingURL=useCurrencyBalance.d.ts.map