Comments (13)
That's not a bad idea, you can get a fair amount of balance queries with blockchain.info, I've hammered away on that one before. I added a simple query to a bitcoin tool that uses their https://blockchain.info/rawaddr/'+a API. You can put in a hash160 or 1Btc... address I think. A drop in like this works for me using Python 3:
def get_balance(address):
if blocked:
try:
response = requests.get("https://blockchain.info/rawaddr/{}".format(address))
balance = response.json()['final_balance']
return int(balance)
except:
return -1
try:
response = requests.get("https://bitaps.com/api/address/" + str(address))
return int(response.json()['balance'])
except:
return -1
Another idea is to try and parse the chainstate every now and then; the chainstate in the bitcoin full node directory only has addresses with balances, I checked that with my brainwallet address and it worked out. I saw my balance and freaked out. Haha.
Does this really use all CPU power? For instance, on a machine with 128 CPUs and 8 threads per CPU?
from plutus.
Confirmed, my IP was blocked. I changed the IP and all is good, but we need to understand why the ip was blocked in the first place.
from plutus.
Me too. I have static ip, and I'm blocked.
from plutus.
According to my assumptions on bitaps.com protection against DDoS attacks is triggered. On my processor (8700k), I get a response from bitaps.com that reports too many requests per second.
from plutus.
Sounds like we need to put a rate-limit on it, as it seems if an IP Is blocked it's blocked forever.
from plutus.
or possibly alternate the API for bitaps.com and blockain.info.
from plutus.
from plutus.
from plutus.
Left a pull request in case anyone wants to test the code with 3 balance functions, in case we get blocked from calling the API.
There hasn't been significant testing yet, so please try it out and let me know what happens if you want to try the Plutus in my github repo.
from plutus.
Please don't merge pull request. I need to get my head around the globals with multithreading on CPUs. It's not working the way it's supposed to.
Will try to figure it out. Thanks...
from plutus.
from plutus.
from plutus.
I'm bringing an update within the next week. So just wait a few more days
from plutus.
Related Issues (20)
- Traceback (most recent call last): HOT 1
- processes spawned: 4 for two days now HOT 1
- Wallet cracker
- Weird Issue! HOT 1
- errors HOT 2
- Problem with fastecdsa HOT 1
- i can not run program using python3 plutus.py plz help i hope great program
- not the fastest address generation
- This will never work HOT 1
- Using a graphics card to participate in calculations will result in better results HOT 2
- Value errors on every gen.
- Unciphered - Randstorm - BitcoinJS SecureRandom
- Check
- 数据库如何更新?
- ValueError: unsupported hash type ripemd160
- Yo
- still Works?
- Hi folks, did anyone find an address with balance? HOT 1
- How to update the database ? HOT 1
- Pytorch support 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 plutus.