<p>As sorki replied you can indeed run a new <code>cardano-node</code> + <code>cardano-wallet</code> instance and <a href="https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postWallet" rel="nofollow noreferrer">restore</a> the desired wallet by specifying its mnemonic sentence and copying the <code>wallet_id</code> shown in the API response.</p>
<p>Since Daedalus already runs <code>cardano-node</code> + <code>cardano-wallet</code> in the background you could perfectly query that API directly. If you're in a *nix system you could run Daedalus from the terminal like this</p>
<pre><code>daedalus-mainnet 2&gt;&amp;1 | sed -u -n '/cardano-wallet/p' | sed -u -n 's/^.* --port \([0-9]*\) .*$/PORT: \1/p'
</code></pre>
<p>to get Daedalus <code>cardano-wallet</code>'s port. Also since Daedalus' front-end communicates with Daedalus' back-end using a client certificate you'd have to use the very same one. Their location depends where did you install Daedalus, in my case they're located here</p>
<pre><code>CLIENT_CRT='~/.local/share/Daedalus/mainnet/tls/client/client.crt'
CLIENT_KEY='~/.local/share/Daedalus/mainnet/tls/client/client.key'
CA_CRT='~/.local/share/Daedalus/mainnet/tls/client/ca.crt'
</code></pre>
<p>Then you can query the list of wallets and get the <code>wallet_id</code></p>
<pre><code>curl --cert &quot;${CLIENT_CRT}&quot; --key &quot;${CLIENT_KEY}&quot; --cacert &quot;${CA_CRT}&quot; https://localhost:&lt;PORT_NUMBER&gt;/v2/wallets
</code></pre>

CC BY-SA 4.0
2021-08-30T18:15:51.963Z
2021-08-30T18:15:51.963Z
Aron Neewart
<p>cardano-wallet is able to create/store multiple wallets - <a href="https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listWallets" rel="nofollow noreferrer">https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listWallets</a></p>
<p>Daedalus wallet IDs have nothing in common with these - I think you need to re-create the wallet in cardano-wallet using either mnemonic words or using account xPub from Daedalus.</p>
<p>Also check out <a href="https://github.com/input-output-hk/cardano-addresses" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-addresses</a> which contains examples of deriving various key types and addresses.</p>

CC BY-SA 4.0
2021-08-29T18:43:54.063Z
Alright that sounds good. Thank you!
Inqubias
CC BY-SA 4.0
2021-08-29T18:26:02.343Z
2021-08-29T18:26:02.343Z
sorki
<p>Some of the <a href="https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listAssets" rel="nofollow noreferrer">cardano-wallet API</a> endpoints ask for 'walletId'. Does anyone know where to retrieve this value from Daedalus?  I only see wallet public key/wallet multi-sig public key.</p>

<wallet><daedalus>
Get wallet ID from Daedalus?
# Get wallet ID from Daedalus?

(Asked by: username_0 on 2021-08-29)

Some of the [cardano-wallet API](https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listAssets) endpoints ask for 'walletId'. Does anyone know where to retrieve this value from Daedalus? I only see wallet public key/wallet multi-sig public key.

**Tags:** wallet, daedalus

---

## 2 answers

### Answer by username_2 on 2021-08-29. Score: 1 | Accepted answer

cardano-wallet is able to create/store multiple wallets - <https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listWallets>

Daedalus wallet IDs have nothing in common with these - I think you need to re-create the wallet in cardano-wallet using either mnemonic words or using account xPub from Daedalus.

Also check out <https://github.com/input-output-hk/cardano-addresses> which contains examples of deriving various key types and addresses.

> **Comments:**
> **username_0**: Alright that sounds good. Thank you!  

---

### Answer by username_1 on 2021-08-30. Score: 1

As sorki replied you can indeed run a new cardano-node + cardano-wallet instance and restore the desired wallet by specifying its mnemonic sentence and copying the wallet_id shown in the API response.
Since Daedalus already runs cardano-node + cardano-wallet in the background you could perfectly query that API directly. If you're in a *nix system you could run Daedalus from the terminal like this
daedalus-mainnet 2>&1 | sed -u -n '/cardano-wallet/p' | sed -u -n 's/^.* --port \([0-9]*\) .*$/PORT: \1/p'

to get Daedalus cardano-wallet's port. Also since Daedalus' front-end communicates with Daedalus' back-end using a client certificate you'd have to use the very same one. Their location depends where did you install Daedalus, in my case they're located here
CLIENT_CRT='~/.local/share/Daedalus/mainnet/tls/client/client.crt'
CLIENT_KEY='~/.local/share/Daedalus/mainnet/tls/client/client.key'
CA_CRT='~/.local/share/Daedalus/mainnet/tls/client/ca.crt'

Then you can query the list of wallets and get the wallet_id
curl --cert "${CLIENT_CRT}" --key "${CLIENT_KEY}" --cacert "${CA_CRT}" https://localhost:/v2/wallets


---

