lambdaclass / lambdaclass/eth-agent
Add WebSocket RPC support
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Problem
Only HTTP RPC is currently supported. WebSocket would enable:
- Real-time event subscriptions
- Lower latency for time-sensitive operations
- Better efficiency for payment watching (vs polling)
Recommendation
- Add WebSocket transport option to RPCClient
- Support
eth_subscribefor newHeads, logs - Automatic reconnection on disconnect
- Fallback to HTTP for compatibility
Use Cases
- Payment watcher with instant notifications
- Real-time balance updates
- Lower latency transaction submission
Priority
Feature request
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the RPCClient entry point and inspect how HTTP RPC is currently supported. Define the scope for a WebSocket transport, eth_subscribe support for newHeads and logs, reconnection, and HTTP fallback; done should cover the listed payment-watching and real-time update use cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100