Title: [ANN] [FREE] Fork balance checker in python Post by: mocacinno on April 25, 2018, 09:26:29 AM I wasn't into claiming from forks, but lately so many of them have popped up, and some actually seem to be worth some "real" BTC, so i was searching for a tool that i could use to check if i controlled unspent outputs (had some balance) on multiple forks... I found a couple online ones, and a couple github projects, but none actually worked the way i liked, and some only checked for a limited amount of forks...
So, i decided to build my own fork balance checker in python :) As usual, the project started out really small and easy, but i kept adding more and more forks and more and more functionality, so it has now grown into a big-ish script that should have been divided into modules... But hey, it's free and it's working ;) https://github.com/mocacinno/mocacinnoforkchecker/ I've given credits to the users whose idears, code and research i used in the README.md Requirements:
Installation instructions: Code: pip install argparse requests base58 urllib3 tqdm you can read the README or give the --help parameter if you want to know which parameters to use... Code: python checker.py --help Basically, only address OR addressfile are obligatory (the script needs to know which addresses to check on those forks). ADDRESSFILE is just a newline seperated list of your addresses, only lines starting with "1", "3" or "bc" are used, so you can add newlines or lines starting with # for comments as much as you'd like Todo:
Warning: if you import your private key(s), xpub's or seed phrases in ANY unknown wallet you COULD lose your unspent outputs on all chains (including the BTC chain), unknown wallets might use a backdoor to send your keys to the wallet's author, he could use these keys to rob you and sign messages in your name!!! Also, make sure the chains you claim on have implemented some sort of replay protection I did not investigate all forks i used in my tool, some *might* be scam!!! use your own brain, i'm not responsible if you lose anything during the claim process!!! Title: Re: [ANN] [FREE] Fork balance checker in python Post by: btc_enigma on April 25, 2018, 09:32:18 AM Very nice, I like this project. Further imporvements
- Use moneywagon to query APIs (Has multiexplorer support with failsafe) - Allow xpub as argument... show balance of wallet across various forks Title: Re: [ANN] [FREE] Fork balance checker in python Post by: mocacinno on April 25, 2018, 09:37:07 AM Very nice, I like this project. Further imporvements - Use moneywagon to query APIs (Has multiexplorer support with failsafe) - Allow xpub as argument... show balance of wallet across various forks moneywagon seems very interesting... I'll look into that one and see if i can implement it xpub as an argument is also a good idear, however i'm a bit afraid of sending to much queries to the explorer's api's... Don't want them to blacklist any ip's ;) I'll try to find a workaround... Thanks for the feedback :) Title: Re: [ANN] [FREE] Fork balance checker in python Post by: btc_enigma on April 25, 2018, 09:43:13 AM Very nice, I like this project. Further imporvements - Use moneywagon to query APIs (Has multiexplorer support with failsafe) - Allow xpub as argument... show balance of wallet across various forks moneywagon seems very interesting... I'll look into that one and see if i can implement it xpub as an argument is also a good idear, however i'm a bit afraid of sending to much queries to the explorer's api's... Don't want them to blacklist any ip's ;) I'll try to find a workaround... Thanks for the feedback :) Understand! If you use moneywagon , it randomizes the calls among the blockexplorers API so that you won't get blacklisted ! You can copy snippets from the below code if you like https://github.com/shivaenigma/btxfees/blob/master/main.py Title: Re: [ANN] [FREE] Fork balance checker in python Post by: user0000001 on April 25, 2018, 11:06:28 AM I would like to see instructions for Windows. if this is certainly possible. thank you very much. very necessary thing Title: Re: [ANN] [FREE] Fork balance checker in python Post by: mocacinno on April 25, 2018, 11:14:24 AM I would like to see instructions for Windows. if this is certainly possible. thank you very much. very necessary thing It should be possible to run this script on windows, all you need is python 2.7 and pip... then you need to visit the github page, download the sourcecode, install the pip modules (as indicated in the OP) and run the script using the freshly installed python 2.7 Can't give you a complete walktrough tough since the only windows laptop i have is the one provided to me by my employer (can't install python on that one) I have compiled v0.1 into a binary that will run on *nix boxes. If you find somebody trustable who knows how to compile python scripts on windows, you can always ask him/her if he/she is willing to compile the script so you can run the binary out of the box :) Title: Re: [ANN] [FREE] Fork balance checker in python Post by: MrCrank on April 25, 2018, 04:04:51 PM Wow, very nice project.
I have not install yet but check soon. I'm interesting because I learn Python now. Thanks Title: Re: [ANN] [FREE] Fork balance checker in python Post by: NectarHQ on April 25, 2018, 04:51:51 PM Good job! Its small projects like this that help push crypto forward and solve unique issues.
Title: Re: [ANN] [FREE] Fork balance checker in python Post by: mocacinno on April 26, 2018, 12:08:30 PM new version released...
Changelog
I ran two tests, the fist one is kind of private, i tested 300 of my addresses against all forks that had an active api: Code: python checker.py --addressfile ../myaddresslist.txt --timeout 1 --outfile outnewversion.log --maximumstatus 1 --timeout 1 => wait 1 second between 2 queries --outfile outnewversion.log => write all important information to this file --maximumstatus 1 => only test chains that have an active api. If i had set this to 2, the script would have included chains that had an explorer without a public api. If i had set this to 3, the script would have also printed info about chains that didn't even have a blockchain explorer (dead, doa, dying, to new, unmaintained, bad dev, scam,...) I'm unwilling to provide any feedback, exept that testing 300 addresses vs 15 chains took less than 2 hours ;D The second demo i ran on the addresses staked on the first 10 posts of this thread: https://bitcointalk.org/index.php?topic=996318.4515 input file: testaddresses_bitcointalk.txt Code: 1FLnpvdXL6ooBpFj2LHqZxQsrxn2voj5uv command line: Code: python checker.py --addressfile testaddresses_bitcointalk.txt --timeout 1 --outfile demolog.txt --maximumstatus 1 Terminal looked like this while it was running: Code: forkchecker@node:~/mocacinnoforkchecker$ python checker.py --addressfile testaddresses_bitcointalk.txt --timeout 1 --outfile demolog.txt --maximumstatus 1 Terminal after the script was done Code: forkchecker@node:~/mocacinnoforkchecker$ python checker.py --addressfile testaddresses_bitcointalk.txt --timeout 1 --outfile demolog.txt --maximumstatus 1 |