useWaitForReceipt
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 | { maxBlocksWaitTime?: number; readonly transactionHash: `0x${string}`; },): UseQueryResult<TransactionReceipt>;
The options for waiting for a transaction receipt.
let options: | undefined | { maxBlocksWaitTime?: number; readonly transactionHash: `0x${string}`; };