useWaitForReceipt

A hook to wait for a transaction receipt.

Example

import { useWaitForReceipt } from "thirdweb/react";
const { data: receipt, isLoading } = useWaitForReceipt({
client,
chain,
transactionHash,
});

Parameters

Returns

a query object.