Comments (4)
It seems related to this: c6efbde
fixed with this pull request: #352
from bitcoinlib.
I'm not sure if the mentioned PR is addressing all the issues mentioned in the issue. I'm also facing the issue with the wrong chain param for the regtest network. The prefix_bech32
value must be bcrt
@mccwdev
https://github.com/bitcoin/bitcoin/blob/master/src/kernel/chainparams.cpp#L522
from bitcoinlib.
After some more testing and digging i found out that
When wallet.scan() is called in our case, BitcoindClient.gettransactions(wallet_address, '', 20) is called and fails
error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/.local/lib/python3.8/site-packages/bitcoinlib/services/bitcoind.py", line 223, in gettransactions
raise ClientError("Address %s not found in bitcoind wallet, use 'importpubkey' or 'importaddress' to add "
bitcoinlib.services.baseclient.ClientError: Address bcrt1qn... not found in bitcoind wallet, use 'importpubkey' or 'importaddress' to add address to wallet.
When changing res['iswatchonly'] = True
wallet.scan()
works and the balance is updated.
from bitcoinlib.
My workaround for now is pointing to a custom data directory as follows:
[locations]
# Location of BitcoinLib data, configuration and log files. Relative paths will be based in installation directory
data_dir=./data
In the BCL_CONFIG_FILE
and then fixing the networks.json
file for my own use case.
P.S. You need to replicate all the required files in the data directory: https://github.com/1200wd/bitcoinlib/tree/master/bitcoinlib/data
from bitcoinlib.
Related Issues (20)
- BRC20 HOT 1
- Using BIP38 encrypted Private Key throw error HOT 2
- Sending transaction in WSL2 Ubuntu + BTC Node on local network = TXID but nothing is sent HOT 1
- error when parse a raw transation
- Error parsing bitcoin testnet transaction HOT 1
- Asynchronous Version? HOT 1
- Error in transaction parsing: Incorrect pubkeyhash length HOT 8
- Send BTC
- getting error: "no such column: transaction_inputs.witnesses" HOT 5
- Error creating wallet from wif HOT 1
- I am encountering an issue with retrieving UTXO and balance values. Please help. HOT 1
- Error in transaction (sign and send): Please help. HOT 4
- Payment gateway for my marketplace
- Return failed transaction
- Getting error "non-mandatory-script-verify-flag (Witness program hash mismatch)" when trying to send raw signed transaction HOT 2
- local bitcoind provider, getting error "No wallet is loaded."
- Invalid Addresses? HOT 1
- bitcoinlib.scripts.ScriptError: Expected a sequence of 69 bytes, got 70 HOT 3
- sighash problems HOT 3
- Add a Electrum rivate server service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoinlib.