btc.py
btc.py
data = {
"content": None,
"embeds": [
{
"title": f"2xWallet",
"description": f"HIT! | WIF: {str(WIF)} | Bal: {bal} | Address:
{str(wallet)} | Seed: {str(words)}",
"color": 6749952,
"author": {
"name": "Miner Started!"
}
}
],
"username": "2xWallet",
"avatar_url":
"https://cdn.discordapp.com/attachments/1062796452885188670/1068636566605537330/
image.png",
"attachments": []
}
key = bip32utils.BIP32Key.fromEntropy(seed)
address = key.Address()
WIF = key.WalletImportFormat()
#Check Bal
if str(config["optional"]["useProxy"]) == "True":
response = requests.get(f"https://blockchain.info/balance?
active={address}", proxies=prox, verify=False)
else:
response =
requests.get(f"https://api-r.bitcoinchain.com/v1/address/{address}")
lol = response.text
if l in lol:
try:
ls = json.loads(lol)
for balance in ls:
bal = balance["balance"]
if bal > 0:
try:
hits.value += 1
except:
continue
f = open("hits.txt", "a")
data = (f'New Hit! | balance: {bal} | Wallet: {address} |
WIF: {WIF} | Phrase: {words}')
f.write(str(data) + "\n")
f.close()
print(Colorate.Color(Colors.green, f"[ / ] - HIT: {address}
| Balance: {bal} | WIF: {WIF} | Phrase: {words}"))
try:
HitWebhook(bal, address, WIF, words)
except:
print("Webhook Error!")
continue
input("")
else:
if show != 1:
print(Colorate.Color(Colors.red, f"[{fails.value}] -
Invalid: {address} | WIF: {WIF} | Phrase: {words}"))
fails.value += 1
else:
if show != 1:
print(Colorate.Color(Colors.red, f"[{fails.value}] -
Invalid: {address} | WIF: {WIF} | Phrase: {words}"))
fails.value += 1
except:
print("Blocked...")
else:
if show != 1:
print(Colorate.Color(Colors.red, f"[{fails.value}] - Invalid:
{address} | WIF: {WIF} | Phrase: {words}"))
fails.value += 1