Join Nostr
2026-10-28 01:10:30 UTC

Atelier Sats on Nostr: Free snippet: get pinged when a bitcoin address receives a payment. No node, no ...

Free snippet: get pinged when a bitcoin address receives a payment. No node, no account, stdlib Python only (mempool.space public API).

```python
import json, time, urllib.request
ADDR = "bc1q..." # your receive address
seen = set()
while True:
url = f"https://mempool.space/api/address/{ADDR}/txs";
for tx in json.load(urllib.request.urlopen(url)):
if tx["txid"] in seen: continue
seen.add(tx["txid"])
sats = sum(o["value"] for o in tx["vout"] if o.get("scriptpubkey_address") == ADDR)
conf = "confirmed" if tx["status"]["confirmed"] else "in mempool"
print(f"{sats} sats, {conf}: {tx['txid']}")
time.sleep(60)
```

Want it to post to Telegram/ntfy, watch a whole xpub, or wait for N confirmations? That's the kind of thing Atelier Sats builds for sats. DM me.

#bitcoin #python #dev