> ## Documentation Index
> Fetch the complete documentation index at: https://docs.walletkit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export wallet

> Export wallet's mnemonic phrase.

<Note> Prerequisite: [Create Wallet](/wallets-api/create-wallet)</Note>

<CodeGroup>
  ```typescript Typescript theme={null}
  const exportWalletResp = await wk.wallets.export({
      network: Network.Base,
      address: "<walelt address>",
      userPin: "<user pin>",
  });

  if (!exportWalletResp.ok) {
  // handle error
  }

  const mnemonicPhrase = exportWalletResp.body.mnemonicPhrase;
  ```

  ```bash Curl theme={null}
  curl --request POST \
    --url https://testnet.walletkit.com/wallets/export \
    --header 'X-WalletKit-Project-ID: <Project ID>' \
    --header 'Authorization: Bearer <User Access Token or Your API Key>' \
    --data '{
          "network": "Base",
          "address": "<wallet address>",
          "user_pin": "<user pin>"
      }'
  ```
</CodeGroup>
