> For the complete documentation index, see [llms.txt](https://docs.paytweed.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paytweed.com/developer-tools/tweed-sdks/core-react/usewallet.md).

# useWallet

Manage the user's wallet, including secure access to their mnemonic

### Export mnemonic

{% hint style="info" %}
A mnemonic is a sequence of words that securely represents the user's wallet private key, allowing them to back up and restore access to their wallet.
{% endhint %}

Use the `getPrivateKey()` function to display a widget where the user can retrieve the mnemonic for their wallet.

<details>

<summary>getPrivateKey ()</summary>

```tsx
import { useWallet } from "@paytweed/core-react";

const { getPrivateKey } = useWallet()
```

</details>
