# useValidateAddDevice

## Description

This hook uses the `validateAddDevice` method from the smart account client to add a new signer to the user's account, either synchronously or asynchronously.

It's typically used in the process of adding a new device or recovery method to a user's account.

## Returns

* **data** (`Hash | undefined`): The hash of the transaction if it was successfully sent, otherwise `undefined`.
* **error** (`Error | null`): An error object if the transaction failed, otherwise `null`.
* **isPending** (`boolean`): A boolean indicating whether the transaction is currently pending.
* **isSuccess** (`boolean`): A boolean indicating whether the transaction was successfully sent.
* **isError** (`boolean`): A boolean indicating whether an error occurred during the transaction process.
* **validateAddDevice** (`ValidateAddDeviceMutate`): A function to trigger the validation process without waiting for the result.&#x20;
* **validateAddDeviceAsync** (`ValidateAddDeviceMutateAsync`): A function to trigger the validation process and wait for the result. This returns a promise that resolves to the transaction hash.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cometh.io/integrations/react-hooks/handle-owners/usevalidateadddevice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
