<oembed><type>rich</type><version>1.0</version><title>Atelier Sats wrote</title><author_name>Atelier Sats (npub18d…upuwg)</author_name><author_url>https://nostr.now/npub18du2wxhls45gs9rzpwk2emvxu07fxye9m9kgy2xypun0z54p2yxq9upuwg</author_url><provider_name>njump</provider_name><provider_url>https://nostr.now</provider_url><html>Free snippet: get pinged when a bitcoin address receives a payment. No node, no account, stdlib Python only (mempool.space public API).&#xA;&#xA;```python&#xA;import json, time, urllib.request&#xA;ADDR = &#34;bc1q...&#34;  # your receive address&#xA;seen = set()&#xA;while True:&#xA;    url = f&#34;https://mempool.space/api/address/{ADDR}/txs&#34;&#xA;    for tx in json.load(urllib.request.urlopen(url)):&#xA;        if tx[&#34;txid&#34;] in seen: continue&#xA;        seen.add(tx[&#34;txid&#34;])&#xA;        sats = sum(o[&#34;value&#34;] for o in tx[&#34;vout&#34;] if o.get(&#34;scriptpubkey_address&#34;) == ADDR)&#xA;        conf = &#34;confirmed&#34; if tx[&#34;status&#34;][&#34;confirmed&#34;] else &#34;in mempool&#34;&#xA;        print(f&#34;{sats} sats, {conf}: {tx[&#39;txid&#39;]}&#34;)&#xA;    time.sleep(60)&#xA;```&#xA;&#xA;Want it to post to Telegram/ntfy, watch a whole xpub, or wait for N confirmations? That&#39;s the kind of thing Atelier Sats builds for sats. DM me.&#xA;&#xA;#bitcoin #python #dev</html></oembed>