fix: SSE filter uses 'crypto' not 'chain' per Freedom.st API docs
This commit is contained in:
parent
36a7d309fa
commit
63c7d7c1d7
|
|
@ -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}`;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue