Comments (8)
The service object was using a deprecated bitcoind method. This issue is fixed in 5d32942
Thanks for your bug report!
from bitcoinlib.
Thank you.
I changed those 2 lines in the code of:
/root/venv/lib/python3.6/site-packages/bitcoinlib/services/bitcoind.py
What is next? Do I need to re-compile / re-install bitcoinlib so that the changes take effect ?
Sorry for asking this unprofessional question.
from bitcoinlib.
That could work depending on your installation but normally you would just upgrade/reinstall the library with something like:
pip install bitcoinlib --upgrade
See https://bitcoinlib.readthedocs.io/en/latest/_static/manuals.install.html
Or did you use another way to install the library?
from bitcoinlib.
Super, that worked! The library is updated and the changes have taken effect.
So now bitcoinlib is trying to retrieve the UTXO's from the bitcoind daemon for a given address of the bitcoinlib wallet, e.g. for 1FMtJUJL6Lbr6hYXoaRBdPSvsGVMuXgYKs
Then I get this WARNING:
2019/06/04 08:04:45 WARNING init(37) Address 1FMtJUJL6Lbr6hYXoaRBdPSvsGVMuXgYKs not found in bitcoind wallet, use 'importaddress' to add address to wallet.
It is obvious that this address of the bitcoinlib wallet is NOT contained in the bitcoind wallet, explaining the WARNING.
Is it not possible to retrieve the UTXO's for an address contained in the bitcoinlib wallet?
from bitcoinlib.
The bitcoind deamon only has information about his own addresses so or you the same private key in bitcoinlib and bitcoind (which doesn't make it any more secure) or you could import an address in bitcoind (which takes a lot of time because you need to reindex) or find another clever solution maybe.
But if you want to keep it simple my advice would be to use one of the other online service providers instead of bitcoind which are also included in bitcoinlib.
from bitcoinlib.
Hmm, I understand.
I am running a Bitcoin full node on a Linux server, and I was hoping that I could do everything via the bitcoind daemon on this server without the need to access any 3rd-party online service providers (as your approach via bitcoinlib suggests).
I like your bitcoinlib library very much. It is very comprehensive (also good documentation with practical examples) and has a very clean abstraction level to basically do everything I want with just a few simple programming lines.
Well anyway, I will need to move on and find another approach to utilize bitcoind's wallet.
from bitcoinlib.
Thanks, and good luck!
You could also look in alternative bitcoin nodes such as bitcore or bitcoin knots (see https://coin.dance/nodes), I'm not sure if bitcoind will do the trick for you.
from bitcoinlib.
I think I will simply do everything with the bitcoin-cli command-line interface and RPC. That should work.
from bitcoinlib.
Related Issues (20)
- ERROR: Failed building wheel for fastecdsa HOT 2
- Litecoin (Mainnet) Transaction Parse Error HOT 3
- Simple dependencies for Tails OS
- Increase fees retrospectively? HOT 4
- mempool.space broken starting release 0.6.11 HOT 1
- Error when sending litecoin transaction HOT 1
- Transaction error HOT 3
- Litecoin transaction parsing raise exception HOT 1
- closed ( HOT 1
- Multisig signing doesn't work when using raw_hex HOT 3
- Get balance from seed phrase
- Error with sending transaction on Ubuntu HOT 5
- Up to date advice on db encryption? HOT 2
- Wallet not found, passphrase error HOT 4
- Issue inside 'as_dict()' in transactions.py HOT 5
- Problem when try to sign p2pkh and p2wpkh HOT 1
- non-JSON HTTP response with '401 Unauthorized' from server HOT 1
- Confuse about wallet import. HOT 1
- unable to install on M2 apple airbook
- Error in parsing one specific transaction only (edge case?) HOT 1
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.