<ol>
<li>
<blockquote>
<p>when you use POST /wallet does it only restore wallets that had previously been created within that server (and if none are found, create a new wallet)?</p>
</blockquote>
</li>
</ol>
<p>It restores the &quot;secret key&quot; derived from the &quot;mnemonic pass phrase&quot;, then derives addresses. From these addresses, it can check the blockchain for balances and assets linked to these addresses.</p>
<p>If it turns out that this &quot;wallet&quot; already has associated records on the network you're connecting to, then we can label the previous action &quot;restoring the wallet&quot;. Otherwise, we can label it &quot;creating a wallet&quot;. The tool does not know whether it is restoring or creating - it just translates the mnemonic pass-phrase to a &quot;secret key&quot;, etc.</p>
<hr />
<ol start="2">
<li>
<blockquote>
<p>does that mean that the 12 word pass-phrase is not universal, and recovering a wallet on different Cardano platforms would not be consistent (I don't think this is the case, because I've been able to use AdaLite and Yoroi interchangeably)</p>
</blockquote>
</li>
</ol>
<p>Not universal across all wallets - it varies depending on the wallet's implementation. For example, the Trezor and Ledger wallets use different styles of derivation.</p>
<p>Another example: even if a wallet uses the same style, if a recovered wallet stops scanning at, say sequential address #1000 but the assets are in address #1001, then the wallet does not &quot;see it&quot;, but it is still there in the blockchain nonetheless.</p>
<hr />
<ol start="3">
<li>
<blockquote>
<p>how, using cardano-wallet can I access a previously created wallet and look at the assets?</p>
</blockquote>
</li>
</ol>
<p>Specifically for <code>cardano-wallet</code> and their REST API that you seem to be using, after restoring it with the POST endpoint it should return balance and assets. Or if it's already restored, GET <code>/wallets</code> or GET <code>/wallets/{walletId}</code> <a href="https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet" rel="nofollow noreferrer">source: docs</a></p>
<hr />
<p>Sources / deeper dive for answers part #1 and #2:</p>
<p>FYI Wallets in Cardano uses a variation of the very popular hierarchial deterministic wallets. For a deeper dive, see:</p>
<ul>
<li><a href="https://github.com/cardano-foundation/CIPs/blob/master/CIP-1852/README.md" rel="nofollow noreferrer">CIP-1852</a></li>
<li><a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" rel="nofollow noreferrer">BIP-44</a></li>
</ul>

CC BY-SA 4.0
2022-02-21T23:48:50.863Z
Good "first" answer.  Way above average.
gRebel
CC BY-SA 4.0
2022-02-21T16:21:39.830Z
2022-02-21T16:21:39.830Z
Alo - RAMBO Pool
<p>I have a <code>cardano-cli</code>/<code>cardano-wallet</code> server set up, and I was trying to load a previously created Yoroi wallet by using the 12 word pass phrase, but it seemed like it created a new wallet instead of recovering the existing wallet.</p>
<p>Questions:</p>
<ul>
<li>when you use <code>POST /wallet</code> does it only restore wallets that had previously been created within that server (and if none are found, create a new wallet)?</li>
<li>does that mean that the 12 word pass-phrase is not universal, and recovering a wallet on different Cardano platforms would not be consistent (I don't think this is the case, because I've been able to use AdaLite and Yoroi interchangeably)</li>
<li>how, using <code>cardano-wallet</code> can I access a previously created wallet and look at the <code>assets</code>?</li>
</ul>

<wallet><cardano-cli>
Yoroi wallet using cardano-cli
# Yoroi wallet using cardano-cli

(Asked by: username_0 on 2022-02-17)

I have a `cardano-cli`/`cardano-wallet` server set up, and I was trying to load a previously created Yoroi wallet by using the 12 word pass phrase, but it seemed like it created a new wallet instead of recovering the existing wallet.

Questions:

* when you use `POST /wallet` does it only restore wallets that had previously been created within that server (and if none are found, create a new wallet)?
* does that mean that the 12 word pass-phrase is not universal, and recovering a wallet on different Cardano platforms would not be consistent (I don't think this is the case, because I've been able to use AdaLite and Yoroi interchangeably)
* how, using `cardano-wallet` can I access a previously created wallet and look at the `assets`?

**Tags:** wallet, cardano-cli

---

## 1 answers

### Answer by username_1 on 2022-02-21. Score: 2 | Accepted answer

1. > when you use POST /wallet does it only restore wallets that had previously been created within that server (and if none are found, create a new wallet)?

It restores the "secret key" derived from the "mnemonic pass phrase", then derives addresses. From these addresses, it can check the blockchain for balances and assets linked to these addresses.

If it turns out that this "wallet" already has associated records on the network you're connecting to, then we can label the previous action "restoring the wallet". Otherwise, we can label it "creating a wallet". The tool does not know whether it is restoring or creating - it just translates the mnemonic pass-phrase to a "secret key", etc.

---

2. > does that mean that the 12 word pass-phrase is not universal, and recovering a wallet on different Cardano platforms would not be consistent (I don't think this is the case, because I've been able to use AdaLite and Yoroi interchangeably)

Not universal across all wallets - it varies depending on the wallet's implementation. For example, the Trezor and Ledger wallets use different styles of derivation.

Another example: even if a wallet uses the same style, if a recovered wallet stops scanning at, say sequential address #1000 but the assets are in address #1001, then the wallet does not "see it", but it is still there in the blockchain nonetheless.

---

3. > how, using cardano-wallet can I access a previously created wallet and look at the assets?

Specifically for `cardano-wallet` and their REST API that you seem to be using, after restoring it with the POST endpoint it should return balance and assets. Or if it's already restored, GET `/wallets` or GET `/wallets/{walletId}` [source: docs](https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet)

---

Sources / deeper dive for answers part #1 and #2:

FYI Wallets in Cardano uses a variation of the very popular hierarchial deterministic wallets. For a deeper dive, see:

* [CIP-1852](https://github.com/cardano-foundation/CIPs/blob/master/CIP-1852/README.md)
* [BIP-44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki)

> **Comments:**
> **username_2**: Good "first" answer.  Way above average.  

---

