Skip to content

feat: add GET /tokens endpoint listing tokens across streams - #204

Open
PHADAR6 wants to merge 3 commits into
StreamGive:mainfrom
PHADAR6:feat/issue-107-add-a-get-tokens-endpoint-listing-tokens-seen
Open

PHADAR6 wants to merge 3 commits into
StreamGive:mainfrom
PHADAR6:feat/issue-107-add-a-get-tokens-endpoint-listing-tokens-seen

Conversation

@PHADAR6

@PHADAR6 PHADAR6 commented Sep 30, 2026

Copy link
Copy Markdown

Overview

This PR adds a GET /tokens endpoint that returns the distinct tokenAddress values seen across streams, along with a stream count for each. This lets the frontend populate a token filter from real data instead of relying on hardcoded values.

Related Issue

Changes

🪙 Tokens Aggregation Endpoint

  • [MODIFY] src/routes/streams.ts

    • Adds a GET /tokens handler that aggregates streams by tokenAddress and returns each distinct token with its stream count.
  • [MODIFY] src/server.ts

    • Registers the streams router so the new /tokens route is reachable.
  • [MODIFY] test/routes/streams.test.ts

    • Adds a test asserting the aggregation returns distinct tokenAddress values with correct stream counts.

Verification Results

npm run lint
npm run typecheck
npm test
Acceptance Criteria Status
Add GET /tokens returning distinct tokenAddress values with a stream count for each ✅ Implemented in src/routes/streams.ts
Add a test asserting the aggregation ✅ Added to test/routes/streams.test.ts

Closes #107

@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@PHADAR6 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Ashborne267 Ashborne267 reopened this Oct 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a GET /tokens endpoint listing tokens seen across streams

2 participants