web3dart icon indicating copy to clipboard operation
web3dart copied to clipboard

Rpc multiquery

Open juampiq6 opened this issue 1 year ago • 2 comments

Multiquery RPC feature:

This PR adds functionality for making several rpc queries in one request. Handling most of the stuff internally in a separate implementation of a Web3Client for compatibility purpose. I can add documentation for it in the main README.md file for people who need it as it can be a useful feature for a lot of people to ask once and get several responses (reducing latency times specially for dapps that make a lot of request). I think this is a key feature. I added some integration test but a lot more can be added (i saw the other parts of this library werent thoughly tested so i want make sense to keep a good test suite only for this feature). Hope this helps!

Any improvement is more than welcome as any corrections or discussion about the implementation! @xclud i hope you have time to review it, I have marked in the PR comments the part where it does actually change a little the library API, but so far the rest and the main functionality is developed in other implementation of the Web3Client.

juampiq6 avatar Feb 26 '23 15:02 juampiq6

@xclud all fixes done, i dont know what could be missing

juampiq6 avatar Mar 02 '23 13:03 juampiq6

Thank You @juampiq6,

There are a couple of merge conflicts.

xclud avatar Mar 02 '23 13:03 xclud