question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DID wallet disappeared / stopped working

See original GitHub issue

What happened?

I created a DID for my NFT collection on my farmer. I assigned that DID to a new NFT wallet I wanted to use for minting. Minting started just fine, but after a while my minting script stopped. Since I wasn’t able to access my farmer for a while I wanted to move my minting operations to a new node. But on that new node my DID wallet never showed up, even though I used the same key as on my farmer. The NFT wallet did show up and had the correct DID assigned to it, but if I try to continue minting with it, it says the assigned DID’s wallet could not be found.

I did some research and found a thread in the Chia forum, where someone had a similar problem and solved it by copying the original wallet db that has been used to create the DID to the new machine. I tried that as well and that actually made the wallet show up in my wallet list.

But since then the DID wallet has a balance of zero while my other DID wallets all have a balance of 1.0. I guess that means the DID smart coin isn’t even really there, right? Minting also doesn’t work anymore. Trying to continue minting my collection gives me the attached warning and error. So, it seems like the DID wallet only exists in that original wallet db which was in use when I created the DID. Even if I delete the wallet db on my farmer and sync it again without accepting unknown peers, the DID wallet doesn’t show up.

The DID is did:chia:12e7kac8e2grp82t2p765y2wuqlzq505jtcafmddj6qx3sp2n4p0qx449ze if that helps.

I already tried everything I found on the web several times. Waiting, raising the derivation index, restarting the client, deleting and rebuilding the databases, creating a new DID, creating a POOL NFT and deleting unconfirmed transactions.

Version

1.6.0

What platform are you using?

Linux

What ui mode are you using?

CLI

Relevant log output

2022-10-22T21:23:33.600 wallet chia.wallet.did_wallet.did_wallet: WARNING  Can't select 1, from spendable 0 for wallet id 38
2022-10-22T21:23:33.612 wallet chia.rpc.util              : WARNING  Error while handling message: Traceback (most recent call last):
  File "/home/pi/chia-blockchain/chia/rpc/util.py", line 16, in inner
    res_object = await f(request_data)
  File "/home/pi/chia-blockchain/chia/rpc/wallet_rpc_api.py", line 1549, in nft_mint_nft
    spend_bundle = await nft_wallet.generate_new_nft(
  File "/home/pi/chia-blockchain/chia/wallet/nft_wallet/nft_wallet.py", line 384, in generate_new_nft
    did_inner_hash, did_bundle = await self.get_did_approval_info(launcher_coin.name())
  File "/home/pi/chia-blockchain/chia/wallet/nft_wallet/nft_wallet.py", line 292, in get_did_approval_info
    did_bundle = await wallet.create_message_spend(puzzle_announcements=[nft_id])
  File "/home/pi/chia-blockchain/chia/wallet/did_wallet/did_wallet.py", line 703, in create_message_spend
    assert coins is not None
AssertionError

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ytx1991commented, Nov 23, 2022

No, it’s in your chia config.yaml file

1reaction
ytx1991commented, Nov 21, 2022

The guy in #13765 verified it should work, though he has to run that find_lost_did command many times. I think there are 2 possible root cause:

  1. Your DID does not belong to the wallet you are using. It may transfer to another wallet unintentionally. To verify this, you can run: chia rpc wallet did_get_info '{"coin_id":"YOUR_DID_ID"}' You should see the P2_Address in the response. Then you can check if it is your address (Send 1 mojo or some other way)
  2. Your DID does belong to this wallet but the derived address is not added to your database. You can increase the derivation index to a bigger number to increase the address is generated in your database. Then resync the wallet database.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Wallet App Icon Missing from Home Screen on iPhone 8
Reset the Home Screen Layout : If the Wallet widget has gone missing somehow, then you need to reset the Home Screen Layout......
Read more >
Google Wallet saved cards & tickets disappearing or missing
Some Google Wallet users are reporting a bug where their saved cards and tickets are disappearing or missing. Here is what we know....
Read more >
Wallet icon missing - Google Wallet Community
I have an oppo x3 which was set on drawer and restarting, the icon for google wallet still does not appear. I had...
Read more >
Wallet app disappeared from app store, is my money gone?
If the app is custodial, your money may be in peril. How to tell if a cryptocurrency exchange or trading platform is trustworthy?...
Read more >
My Crypto is Missing, What Should I Do? - Troubleshooting
Step 1. Is the Coin/Token Supported? · Step 2. Confirm Balance of an Address · Step 3. Check Your Internet Connection and VPN...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found