Skip to content

Reduce eth_chainId and net_version calls to eth1 node #2282

@paulhauner

Description

@paulhauner

Description

I noticed that a significant portion (~30%) of our calls to eth1 nodes are to the eth_chainId and net_version endpoints. Here's a graph from Infura showing the usage from several BNs:

infura

Considering that Infura (and other services) are billed per-request, we could provide tangible cost savings to our users by reducing the number of requests. It seems that chain id and version are low hanging fruit, perhaps we only poll them on first request and every 100th request or so?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions