@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
26 lines (25 loc) • 639 B
TypeScript
import type { Chain, ChainType } from '@lifi/sdk';
export declare enum AddressType {
Address = 0,
NameService = 1
}
type ValidationArgs = {
value: string;
chainType?: ChainType;
chain?: Chain;
};
type ValidResponse = {
address: string;
addressType: AddressType;
chainType: ChainType;
isValid: true;
};
type InvalidResponse = {
error: string;
isValid: false;
};
export declare const useAddressValidation: () => {
validateAddress: import("@tanstack/react-query").UseMutateAsyncFunction<ValidResponse | InvalidResponse, Error, ValidationArgs, unknown>;
isValidating: boolean;
};
export {};