optimism icon indicating copy to clipboard operation
optimism copied to clipboard

Add Batch BlockByNumber to Client

Open axelKingsley opened this issue 1 year ago • 1 comments

RPC clients use an internal rpcBlock structure to hold RPC responses before returning back to the caller. Because the rpcClient had been unexported, it wasn't possible to write a batch call with that structure from outside the package.

https://github.com/ethereum-optimism/optimism/pull/9246 exported the struct so anyone can build a batch call, but another helpful idea is to simply add batch calls to our clients so they may be used even more simply.

axelKingsley avatar Jan 30 '24 15:01 axelKingsley

The large preimage verification process would benefit from being able to request (non-contiguous) batches of blocks in a single call which this would help with.

ajsutton avatar Jan 30 '24 20:01 ajsutton

@axelKingsley is this still something we plan to work on, since it's stale issue from over a year ago?

BlocksOnAChain avatar Feb 04 '25 15:02 BlocksOnAChain