@smartinvoicexyz/hooks
Version:
Unified source for React hooks used across the Smart Invoice protocol.
15 lines (14 loc) • 530 B
TypeScript
import { UseToastReturn } from '@smartinvoicexyz/types';
import { Hex } from 'viem';
import { SimulateContractErrorType, WriteContractErrorType } from './types';
export declare const useVerify: ({ address, chainId, toast, onTxSuccess, }: {
address: Hex | undefined;
chainId: number;
toast: UseToastReturn;
onTxSuccess?: () => void;
}) => {
writeAsync: () => Promise<Hex | undefined>;
isLoading: boolean;
prepareError: SimulateContractErrorType | null;
writeError: WriteContractErrorType | null;
};