lambdaclass / lambdaclass/eth-agent

Add Multicall support for batched reads

Open
#23 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.