Testnet CLI: Created wallet with curl command that is no longer accessible to me. Looking for insight

testnet CLI: Created Wallet with curl --request POST command … Sent Transactions … Now not present

I am just tinkering with Cardano through the testnet. I’ve hit a roadblock and looking for any insight with a wallet that I’ve created and am not able to access any longer.

I created a wallet with the command below following some guidance on the developers.cardano.org site:

curl --request POST \
  --url http://localhost:8090/v2/wallets \
  --header 'Content-Type: apcurl --request POSTplication/json' \
  --data '{
    "name": "Wallet1",
    "mnemonic_sentence": ["shift", <snip> "apology"],
    "passphrase": "test123456"
}' | jq

I was able to use this wallet to create simple transactions, sending tADA to it etc, but after reboot when pinging the wallet I do not see that it exists.

curl --request GET --url http://localhost:8090/v2/wallets/735<snip>7811 | jq '.state'
curl --request GET --url http://localhost:8090/v2/wallets/735<snip>7811 | jq '.balance'

I get null.

Addresses I used to send tADA to still show the tADA.

addr_test1qq2xy0hv8lz37tcxphkklm8ma0yx6txuuvg2nsn6mudst2v7n5h0rnpl5fka6haqrnfj3m99amv24dd9wjdag3mzdnus6fl8nz   (1000 tADA)
addr_test1qptceaxke3ppvkgxvjz03m6f0w225vd93fss2adl047ayw57n5h0rnpl5fka6haqrnfj3m99amv24dd9wjdag3mzdnuszx55q2    (2000 tADA)

I got these addresses yesterday with the following command.

curl --request GET --url 'http://localhost:8090/v2/wallets/735<snip>7811/addresses?state=unused' | jq '.[0]'

Same command today gives me an Error.

Through cardano-cli or cardano-wallet, how do I ‘recover’ or ‘reactivate’ or ‘access’ this wallet and the tokens I’ve sent to it?

This is not a critical need … I’m just trying to learn. Trying to figure out why it became unavailable or what commands to use to re-establish or reconnect to it.

I’ve created another wallet with another with a different command:

cardano-wallet wallet create from-recovery-phrase Wallet2
    --port 8090 /
    --address-pool-gap 20

I’m thinking this is the better route …

thanks in advance.

So using the mnemonic and after installing Daedalus Testnet wallet, I was able to link up with the wallet from the GUI interface, but still searching for

  1. Why the wallet went away for lack of a better term in the command line interface (and still unavailabe) and
  2. How to revive it through cardano-cli or cardano-wallet.


UPDATE: shutdown and restarted again and the second wallet I created is no longer accessible with cardano-wallet wallet list just get the result of []

SOLUTION : I figured it out. I’ve been starting the server with the following. Was storing database in /tmp/testnet . I believe I set this up after following instructions from this website.

https://iohk.zendesk.com/hc/en-us/articles/900000672303-How-to-build-and-run-cardano-wallet-using-Nix .

cardano-wallet serve \
 --node-socket ~/cardano/db/node.socket \
 --testnet ~/cardano/testnet-byron-genesis.json \
 --database /tmp/testnet

The database path will be changed to

--database $HOME/cardano/wallets/db