lambdaclass / lambdaclass/eth-agent
Add Multicall support for batched reads
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Problem
Reading multiple contract values requires multiple RPC calls. Multicall would batch reads into a single call.
Recommendation
- Integrate Multicall3 contract (widely deployed)
- Add
multicall(calls[])method to RPCClient or Contract - Auto-batch multiple
contract.read()calls when possible
Use Cases
- Get multiple token balances in one call
- Read multiple contract states efficiently
- Reduce RPC costs and latency
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 by reading the RPCClient and Contract entry points named in the issue, then determine how existing contract.read() calls are represented and dispatched. Done would include Multicall3 integration, a multicall(calls[]) method, and a defined approach for automatically batching compatible reads, with tests demonstrating batched balances or contract-state reads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100