chia-blockchain: [Bug] Cannot move NFT to DID. DID blocked (unspendable)

What happened?

Description

GUI

Since few weeks I try to move NFT to my DID but couldn’t. I get this error :

NFT Move Failed
The NFT move failed: Error: Can't select 1, from spendable 0 for wallet id 2

CLI

I have tried with CLI chia wallet did get_did -i 2 and get this error : Failed to get DID: 'coin_id'

RPC

With RPC I can do those calls : did_get_info and did_get_did without issues.

did_get_current_coin_info return me an error:

Request failed: {'error': "Can't select 1, from spendable 0 for wallet id 2", 'success': False}

Version

1.6.1 and 1.7.0rc2

What platform are you using?

macOS

What ui mode are you using?

GUI & CLI

Relevant log output

2022-12-08T11:39:00.010 wallet chia.wallet.did_wallet.did_wallet: WARNING  Can't select 1, from spendable 0 for wallet id 2
2022-12-08T11:39:00.011 wallet chia.rpc.rpc_server        : WARNING  Error while handling message: Traceback (most recent call last):
  File "chia/rpc/rpc_server.py", line 329, in safe_handle
  File "chia/rpc/rpc_server.py", line 320, in ws_api
  File "chia/rpc/wallet_rpc_api.py", line 2224, in nft_set_nft_did
  File "chia/wallet/nft_wallet/nft_wallet.py", line 1112, in set_nft_did
  File "chia/wallet/nft_wallet/nft_wallet.py", line 316, in get_did_approval_info
  File "chia/wallet/did_wallet/did_wallet.py", line 763, in create_message_spend
  File "chia/wallet/did_wallet/did_wallet.py", line 329, in select_coins
ValueError: Can't select 1, from spendable 0 for wallet id 2

2022-12-08T11:46:45.773 wallet chia.wallet.did_wallet.did_wallet: WARNING  Can't select 1, from spendable 0 for wallet id 2

2022-12-08T11:51:55.879 wallet chia.wallet.did_wallet.did_wallet: WARNING  Can't select 1, from spendable 0 for wallet id 2
2022-12-08T11:51:55.879 wallet chia.rpc.util              : WARNING  Error while handling message: Traceback (most recent call last):
  File "chia/rpc/util.py", line 18, in inner
  File "chia/rpc/wallet_rpc_api.py", line 2076, in did_get_current_coin_info
  File "chia/wallet/did_wallet/did_wallet.py", line 951, in get_info_for_recovery
  File "chia/wallet/did_wallet/did_wallet.py", line 329, in select_coins
ValueError: Can't select 1, from spendable 0 for wallet id 2

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

You can try 1.6.2. We added a new wallet RPC API did_find_lost_did. It can recover the missing did coin. example command: chia rpc wallet did_find_lost_did ‘{“coin_id”:“YOUR_DID_ID_OR_COIN_ID”}’

Unfortunately, it did not work for me. I get the message: Request failed: {‘error’: ‘This DID 2ae4957c0044215d7d55c2711a160515090cccee791b8720dcf055fb6c61f52a is not belong to the connected wallet’, ‘success’: False}

Spacescan.io correctly directs 2ae4957c0044215d7d55c2711a160515090cccee791b8720dcf055fb6c61f52a to my profile.

It’s because the DID transaction memo was set in a wrong way which caused the wallet doesn’t recognize the DID. You still have the actual control of the DID coin.