alchemyplatform/alchemy-web3

Getting too many net_version requests on Alchemy Node

Closed this issue · 2 comments

This is my alchemy account, I'm using createAlchemyWeb3 method for a socket connection to an Alchemy Node.
I'm not sending any "net_version" requests but it's consuming around 1 million compute units every day.
How can I prevent the module to avoid sending these many net_version requests?

image
image

Hey @GarvMaggu! This is unexpected since we shouldn't charge for net_version. The WebSocket implementation sends net_version as a heartbeat to keep the connection alive. Can you share your app team/id with support@alchemy.com? Thanks!

Hi @thebrianchen! Yes, I'm not getting charged for net_version requests on Alchemy, but I'm also using a few other node providers and some of them are charging for it.

Not an issue though, I switched to HTTPS provider at a few places, and now net_version requests are not too much.

Thank you for the info!