harmony-one / sdk

Javascript SDK of Harmony protocol.
MIT License
92 stars 43 forks source link

Missing "hmy_getBlocks" #83

Closed isaacadams closed 3 years ago

isaacadams commented 3 years ago

I was playing around with the SDK and realized I wanted to minimize the amount of requests I was making through the getBlockByNumber method. I found there is a method to request a range of blocks in one call, but it is not available through the js SDK.

I recently made a PR which adds in the missing functionality.