vechain / web3-gear

Proxy Thor's RESTful API to Eth JSON-RPC, to support Remix, Truffle and more.
MIT License
30 stars 17 forks source link

eth_getBlockTransactionCountByNumber, but method not found #35

Open deantheiceman opened 4 years ago

deantheiceman commented 4 years ago

Seem to be getting unknown method on this eth_getBlockTransactionCountByNumber

deantheiceman commented 4 years ago

I'm writing a blockexplorer which uses these features, would be helpful if you can help me with the missing methods.

Thanks!

uldaman commented 4 years ago

Maybe you can use getBlockByNumber api, then it returns the result there is a list of transactions, so list.length() is the count of transactions.

deantheiceman commented 4 years ago

I'm trying to reuse some existing tooling which requires on the eth methods, are you able to help me find where I could possibly edit and create these methods?

uldaman commented 4 years ago

The goal of Gear is to make Remix & Truffle easier to use, so I'm not going to add some extra apis at this time. You may consider using the way I mentioned it last time.