A hook to wait for a transaction receipt.
import { useWaitForReceipt } from "thirdweb/react";const { data: receipt, isLoading } = useWaitForReceipt({ client, chain, transactionHash,});
function useWaitForReceipt( options: | undefined | { chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; maxBlocksWaitTime?: number; readonly transactionHash: `0x${string}`; },): UseQueryResult<TransactionReceipt>;
The options for waiting for a transaction receipt.
let options: | undefined | { chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; maxBlocksWaitTime?: number; readonly transactionHash: `0x${string}`; };
let returnType: UseQueryResult<TransactionReceipt>;
a query object.