-
Using clw and running this command:
I can see the rpc queries in the bitcoind log debug.log file. However, when it gets to this query:
It fails in bitcoinlib with this message (which I can only see if I add a breakpoint() to services.py on line 193, like so:
and step through the code, otherwise the error message gets swallowed.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The message indicates you have not created a wallet in bitcoind. Bitcoind and bitcoinlib have separate wallets, they are not automatically connected. Bitcoinlib normally uses a bitcoind node only to send transactions or get block and transaction information. |
Beta Was this translation helpful? Give feedback.
Problem is that bitcoind only has utxo information for it own keys, so if an address is not in it's wallet it does not have utxo / transaction information for that address.
You could counter this by using bitcoind's importprivkey, and import all keys of your bitcoinlib wallet to the bitcoind wallet. Only bitcoind needs to reindex the whole blockchain, after an address import, which can takes up to 30 minutes.
You could also use a bcoin node, which allow for address searches on the blockchain.