lambdaclass / lambdaclass/eth-agent

Add WebSocket RPC support

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

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_subscribe for 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.