Kontrol Merkezi
Bu sistem 32-byte private key degerini adim adim arttirir, Ethereum adresini turetir ve yalnizca Ethereum RPC uzerinden ETH bakiyesini sorgular.
Varsayilan olarak ayni origin /makansu-2/rpc yolu kullanilir; istenirse tam bir Ethereum RPC URL de yazilabilir.
Durum
Idle
Cycle: 0
Latency: --
Time: --
Komut 1: Private Key Loop
Python scriptindeki stepping burada yalnizca Ethereum icin calisir. Uretilen her key dogrudan Ethereum cozumleme katmanina gider.
python3 - <<'PY'
from eth_account import Account
x = bytearray.fromhex("<start_hex>")
while True:
for i in range(31, -1, -1):
x[i] = (x[i] + 1) & 0xff
if x[i] != 0:
break
key = "0x" + x.hex()
print(key, Account.from_key(key).address)
PY
Current Key
--
Next Key
--
Key Log
Komut 2: Ethereum Sonuc
Her stepping sonrasi checksum address, wei bakiyesi ve ETH degeri burada guncellenir.
Not: 0 ETH de gecerli bir bakiye sonucudur. -- goruyorsaniz istek Ethereum RPC tarafinda hata almistir.
RPC_URL="(live)" KEY="(live)" python3 - <<'PY'
import json, os, urllib.request
from eth_account import Account
key = os.environ["KEY"]
addr = Account.from_key(key).address
payload = json.dumps({
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [addr, "latest"],
"id": 1
}).encode()
req = urllib.request.Request(os.environ["RPC_URL"], data=payload, headers={"Content-Type": "application/json"})
resp = json.load(urllib.request.urlopen(req))
print(addr, int(resp["result"], 16) / 10**18)
PY
Address
--
Wei
--
ETH
--