fix: SSE filter uses 'crypto' not 'chain' per Freedom.st API docs

This commit is contained in:
M1 2026-03-18 23:41:21 +04:00
parent 36a7d309fa
commit 63c7d7c1d7
1 changed files with 2 additions and 4 deletions

View File

@ -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}`;