This repo provides an easy way to realize your daydream
You can skip this step via downloading the executable file on release page, if you are using MacOS.
go build -o web3_lottery main/main.go
chmod +x ./web3_lottery
nohup ./web3_lottery >> out.log &
- The data source of whale ETH addresses is coming from etherscan.io and debank.com
- You can choose binary search or bloom filter by edit the field
search_method
in config/config.yaml file - The probability of each successful trial is 1/(2^160), and the probability of success per day depends on the performance of your machine.
Here is my test (only one core):
Frequency of CPU | Trials per second | Probability per day |
---|---|---|
2.0 GHz | 1381 | 8.16537002e-41 |
2.2 GHz | 1675 | 9.90239179e-41 |
(MacOS M1) | 2083 | 1.23160998e-40 |