<p>The <code>mnemonic_sentence</code> can be between 15 and 24 words. The <code>mnemonic_second_factor</code> is optional. So you can simply pass all your 24 words in as <code>mnemonic_sentence</code> and don't set the <code>mnemonic_second_factor</code> and you should be able to restore your wallet.</p>
<p><a href="https://i.sstatic.net/UQn3u.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UQn3u.png" alt="enter image description here" /></a></p>
<p>Source: <a href="https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet" rel="nofollow noreferrer">https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet</a></p>

CC BY-SA 4.0
2022-07-08T15:41:15.617Z
I've tried this as well but using 15 words & I keep getting `wallet_already_exists` error. Does this mean I can't restore a wallet that was created by the `cardano-wallet` server in the past?
CoderMan
CC BY-SA 4.0
2021-07-23T06:02:44.163Z
2021-07-23T06:02:44.163Z
eddex
<p>Daedalus wallet recovery phrase is 24 words. Cardano Wallet Backend mnemonic sentence is 15 words and mnemonic second factor is 9 words, adding up to 24 words.</p>
<p>I tried restoring a wallet through <a href="https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet" rel="nofollow noreferrer">Cardano Wallet Backend API</a> by taking the first 15 words of the Daedalus wallet recovery phrase as an input for <code>mnemonic_sentence</code> and rest of the 9 words as an input for <code>mnemonic_second_factor</code>. Unfortunately, this does not work as the last word of the <code>mnemonic_sentence</code> produces an incorrect checksum.</p>
<p>Is there a way I can restore a wallet through the API knowing a Daedalus wallet recovery phrase?</p>

<wallet><daedalus><cardano-node><api><recovery>
Daedalus wallet recovery phrase to Cardano Wallet Backend mnemonic sentence + mnemonic second factor
# Daedalus wallet recovery phrase to Cardano Wallet Backend mnemonic sentence + mnemonic second factor

(Asked by: username_0 on 2021-07-22)

Daedalus wallet recovery phrase is 24 words. Cardano Wallet Backend mnemonic sentence is 15 words and mnemonic second factor is 9 words, adding up to 24 words.

I tried restoring a wallet through [Cardano Wallet Backend API](https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet) by taking the first 15 words of the Daedalus wallet recovery phrase as an input for `mnemonic_sentence` and rest of the 9 words as an input for `mnemonic_second_factor`. Unfortunately, this does not work as the last word of the `mnemonic_sentence` produces an incorrect checksum.

Is there a way I can restore a wallet through the API knowing a Daedalus wallet recovery phrase?

**Tags:** wallet, daedalus, cardano-node, api, recovery

---

## 1 answers

### Answer by username_1 on 2021-07-23. Score: 1 | Accepted answer

The `mnemonic_sentence` can be between 15 and 24 words. The `mnemonic_second_factor` is optional. So you can simply pass all your 24 words in as `mnemonic_sentence` and don't set the `mnemonic_second_factor` and you should be able to restore your wallet.

[![enter image description here](https://i.sstatic.net/UQn3u.png)](https://i.sstatic.net/UQn3u.png)

Source: <https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet>

> **Comments:**
> **username_2**: I've tried this as well but using 15 words & I keep getting `wallet_already_exists` error. Does this mean I can't restore a wallet that was created by the `cardano-wallet` server in the past?  

---

