Oslo TV Makansu-3 Bitcoin

Kontrol Merkezi

Bu blok Bitcoin private key degerini normalize eder, her dongude 1 arttirir ve legacy ile nested segwit adreslerinin BTC bakiyesini ayri Bitcoin API uzerinden sorgular.

Varsayilan olarak guclendirilmis /makansu-3/balance kullanilir: tek istekte iki adresi okur, hafif UTXO sorgusu yapar ve mempool/blockstream fallback kullanir. /makansu-3/api yedek REST proxy, Chainstack Bitcoin JSON-RPC ise sadece yavas fallback icindir.

500 ms

Durum

Idle Cycle: 0 Latency: -- Time: --

Debug: hazir

Komut 1: Private Key Loop

Her turde private key 1 artar ve ayni key Bitcoin tarafinda legacy ile nested segwit adreslerine cozulur.

python3 - <<'PY' from bit import Key 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 k = Key.from_hex(x.hex()) print("legacy:", k.address) print("nested_segwit:", k.segwit_address) PY
Current Key --
Next Key --

Key Log

Komut 2: Bitcoin Sonuc

Canli private key ile legacy ve nested segwit adresleri uretilir, sonra iki adresin BTC bakiyesi yalnizca Bitcoin API uzerinden sorgulanir.

Not: 0 BTC de gecerli bir bakiye sonucudur. -- goruyorsaniz istek Bitcoin API tarafinda hata almistir.

python3 -c "from bit import Key; k = Key.from_hex('(live)'); print('legacy:', k.address); print('nested_segwit:', k.segwit_address)"
BTC_API="(live)" python3 - <<'PY' import json, os, urllib.request def fetch_balance(api_base, address): api_base = api_base.rstrip("/") data = json.load(urllib.request.urlopen(f"{api_base}/address/{address}")) chain = data.get("chain_stats", {}) mempool = data.get("mempool_stats", {}) funded = int(chain.get("funded_txo_sum", 0)) + int(mempool.get("funded_txo_sum", 0)) spent = int(chain.get("spent_txo_sum", 0)) + int(mempool.get("spent_txo_sum", 0)) return funded - spent legacy = "(legacy)" nested = "(nested)" print("legacy:", legacy, fetch_balance(os.environ["BTC_API"], legacy) / 10**8) print("nested_segwit:", nested, fetch_balance(os.environ["BTC_API"], nested) / 10**8) PY
legacy --
legacy sats --
legacy BTC --
nested_segwit --
nested sats --
nested BTC --

Result Log

Non-Zero BTC Hits