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();
|
const ac = new AbortController();
|
||||||
activeStreams.set(chain, ac);
|
activeStreams.set(chain, ac);
|
||||||
|
|
||||||
// No address filter — we watch ALL txs on this chain and match server-side
|
// Watch all txs for this coin and match server-side against our address map.
|
||||||
// against our address map. This is necessary because addresses change as
|
const query = { crypto: chain };
|
||||||
// new payments are created.
|
|
||||||
const query = { chain };
|
|
||||||
const q = Buffer.from(JSON.stringify(query)).toString("base64");
|
const q = Buffer.from(JSON.stringify(query)).toString("base64");
|
||||||
const url = `${SOCK_API}/sse?q=${q}`;
|
const url = `${SOCK_API}/sse?q=${q}`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue