-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Nest.jsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programbackendNew feature or requestNew feature or request
Description
π Overview
Decentralized applications (dApps) require real-time gas price and network data to optimize transactions and improve user experience. Polling APIs is inefficient and introduces latency.
This task introduces a Real-Time WebSocket Gas Feed to push live gas updates to subscribed clients instantly.
π― Objective
Build a system that:
- Provides real-time gas updates via WebSocket
- Supports subscription to specific chains and transaction types
- Delivers low-latency updates for dApps and dashboards
- Enables developers to react to network conditions immediately
π Scope of Work
1οΈβ£ WebSocket Server
-
Implement a WebSocket server endpoint:
wss://api.gasguard.com/realtime -
Handle client connections with authentication via API key or JWT
-
Support multiple subscriptions per client (e.g., Ethereum, BSC, Polygon)
-
Manage connection lifecycle (connect, disconnect, reconnect)
2οΈβ£ Data Feed
- Provide real-time gas metrics:
- Base fee and priority fee per chain
- Gas price trends and volatility
- Optional: network congestion indicators
- Push updates at configurable intervals (e.g., every 5β10 seconds)
- Ensure data consistency and reliability across clients
Example payload:
{
"chainId": 1,
"timestamp": 1700000000,
"gasBaseFee": "32",
"gasPriorityFee": "2",
"gasMax": "34",
"networkStatus": "Normal"
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Nest.jsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programbackendNew feature or requestNew feature or request