Hello all and sorry for late reply.
It's not hard to see that coinkit is abandonware - Pavol has probably moved on to other things.
There is also no reason to port stuff yourself; there are enough working, maintained Python 3 Bitcon libraries. The ones ETFbitcoin mentioned should all work just fine.
Thanks for clarification guys! I fully agree, no reason to go with abandoned initially named coinkit. I simply installed pycoin with
and the provided ku tool already gave me all the information I needed for my 1st steps. For instance I run
and get a bunch of information like private/public keys in various formats (compress/uncompressed) and the addresses etc... very nice and not complicated. Thanks again to you for putting me to the right way
Now I need to find out an easy way to query the blockchain for the balance of one or more address/es. If understood correctly pycoin is not capable of querying and thus interacting with the blockchain, is that correct or wrong? I looked forward to "btctools" Just like pycoin it is a package within python which can be easily installed
with
w.scan() I can query the blockchain and sync my wallet and with
w.info() I can display all the wallet info. This outputs also the balance, honestly said I'd like a more convenient way to scan and display
only the balance. Let's go one step further and try "
bit" which is also within pythons package system and can easily be installed
Although it seems is not frequently maintained as pycoin or bitcoinlib it claims to be the fastest lib (100x faster than the closest lib) out there. Sounds promising if you ask me
well, tried it out and I was able to fulfill all the needed tasks with the
key.commands, so far
GREAT impression. The next page called
Networking in the documentation explains how we can interact with the block chain. So my previous question about how to easily get the actual balance of my address, simply answered:
et-voila!
I'm impressed and I guess this is the way to go. Now I
just need to learn coding Python
but thanks to your grateful suggestions certainly I will succeed some day. Will dig further into Codecademy, W3schools and learnpython
EDIT: Meanwhile, can anyone show me a small python snippet which I could pipe a private key (hex) into or a bitcoin address and which in advance will run the
get_balance function for the address? My goal is following: I'd like to have a
foo.py and run it as a bash command like
~/foo.py bc1qmyaddressXXXXfoobar
or
~/foo.py address.lst (where this file contains a bitcoin address in each line)
or
~/foo.py privkeyhey.lst (where this file contains private hex key in each line)
I'd like to show/save the results only for those addresses that either have a balance > 0.0
or had any transaction in the past.
Any help appreciated.
Thanks a bunch to all of you, already sent some merits to you. Have a nice weekend everybody, cheers!
citb0in