From 63c7d7c1d7d95a01f6b46b3fd1aff5a7d9d700ee Mon Sep 17 00:00:00 2001 From: M1 Date: Wed, 18 Mar 2026 23:41:21 +0400 Subject: [PATCH] fix: SSE filter uses 'crypto' not 'chain' per Freedom.st API docs --- apps/pay/src/monitor.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/pay/src/monitor.ts b/apps/pay/src/monitor.ts index 12ede7f..ef73af8 100644 --- a/apps/pay/src/monitor.ts +++ b/apps/pay/src/monitor.ts @@ -32,10 +32,8 @@ function startChainStream(chain: string) { const ac = new AbortController(); activeStreams.set(chain, ac); - // No address filter — we watch ALL txs on this chain and match server-side - // against our address map. This is necessary because addresses change as - // new payments are created. - const query = { chain }; + // Watch all txs for this coin and match server-side against our address map. + const query = { crypto: chain }; const q = Buffer.from(JSON.stringify(query)).toString("base64"); const url = `${SOCK_API}/sse?q=${q}`;