Difficulty: Advanced
Type: Feature
Summary
Add support for batching compatible contract read calls into one JSON-RPC request. This helps integrations reduce RPC overhead when checking many wallets or guilds.
Current Behaviour
Each contract read sends a separate eth_call request. Applications that need multiple balances or owner lookups must manage batching themselves.
Expected Behaviour
The SDK should expose batch helpers for safe read-only contract calls and return ordered per-item results.
Suggested Implementation
Add methods such as getMembershipTokenBalancesBatch or a lower-level batchEthCall helper. Preserve input order, support partial failures, and avoid batching unsupported mutating operations.
Files or Areas Likely Affected
src/contracts/contractClient.ts
src/contracts/contract.types.ts
tests/contracts.test.ts
docs/api-reference.md
docs/integration-guide.md
Acceptance Criteria
Additional Notes
Assumption: this should use JSON-RPC batch requests only for read-only methods.
Difficulty: Advanced
Type: Feature
Summary
Add support for batching compatible contract read calls into one JSON-RPC request. This helps integrations reduce RPC overhead when checking many wallets or guilds.
Current Behaviour
Each contract read sends a separate
eth_callrequest. Applications that need multiple balances or owner lookups must manage batching themselves.Expected Behaviour
The SDK should expose batch helpers for safe read-only contract calls and return ordered per-item results.
Suggested Implementation
Add methods such as
getMembershipTokenBalancesBatchor a lower-levelbatchEthCallhelper. Preserve input order, support partial failures, and avoid batching unsupported mutating operations.Files or Areas Likely Affected
src/contracts/contractClient.tssrc/contracts/contract.types.tstests/contracts.test.tsdocs/api-reference.mddocs/integration-guide.mdAcceptance Criteria
Additional Notes
Assumption: this should use JSON-RPC batch requests only for read-only methods.