Skip to main content
Hook that waits for a user operation to be confirmed and provides its current state. This hook polls the user operation status until it’s confirmed or fails. Note: The data returned from the hook only represents the last sent user operation. If you wish to call one instance of the hook multiple times in quick succession it is recommended to save the userOpHash returned from waitForUserOperation yourself and handle waiting for the result.

Parameters

Returns

UseWaitForUserOperationReturnType Query result with data, loading state, and error information

Example