Skip to content

Feature Request: Add WebSocket subscription for whale alertsΒ #2455

@serayd61

Description

@serayd61

Feature Request

Description

Add a WebSocket subscription endpoint that allows clients to receive real-time notifications for large STX transfers (whale alerts).

Use Case

DeFi monitoring applications need to track large transactions in real-time. Currently, this requires polling the API or setting up Chainhooks separately.

Proposed Solution

Add a new WebSocket channel:

{
  "type": "subscribe",
  "channel": "whale-alerts",
  "threshold": 100000000000  // 100K STX in microSTX
}

Benefits

  • Reduces API polling load
  • Enables real-time DeFi monitoring
  • Improves developer experience

Reference

I've implemented a similar feature in my project: https://github.com/serayd61/stacks-defi-sentinel

Would be happy to contribute if this feature is accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    πŸ†• New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions