# generateAuthenticator

```javascript
const transactionResult= await Tools.generateAuthenticator();
```

Above code provides to create a new protection factor with clients assets. You can model to add authenticator factor and hackers cannot access the wallet to transfer , even if they know the private key!

**Response:**

```
{
    "executedResult":{},
    "error":0,
    "tx":"a3449d13cc98521e2711f4f033d99f93876c507739774986e08f0574a89e7d9d",
    "sign":"3045022054d25f4efa52bcf785588c5ad49f60d06955f01476a7de41bd5c6a4893d980e1022100d214cb6a377813b392847532ebaa85bc7f7ca9d99ab12003be5471471e3b3a7d",
    "timeStamp":1705185353375
}
```


---

# 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://smartscenarios.pirichain.com/psce-functions/generateauthenticator.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.
