Closed anthonybudd closed 2 years ago
The code looks correct to me.
Does mainWallet.info() show the utxo? Do you see any warnings or errors in the logs? I assume there is a problem with one of the service providers.
Another thing could be that you probably create many wallets with a different name, but same masterkey. There could be some conflict there. I will run some tests.
I could not reproduce the error using the same code. Are you using the latest version of the library?
If so please let me know if you found any errors in the logs.
Hey, I have the same problem.
I have a wallet that has ~$100 of BTC on it. I'm trying to make a programmatic transaction using Bitcoinlib but I am getting this error:
bitcoinlib.wallets.WalletError: Create transaction: No unspent transaction outputs found or no key available for UTXO's
In the code I am loading the seedphrase for the wallet with the $100 wallet (line 7, mainKey...). As per the docs I am using the scan() method to Update all UTXO’s and balances. I would have thought the scan method would find that there is a balance however the error would suggest that it is not.
Can anyone point out something obvious I'm doing wrong or is this an issue with the library?.
CODE: