Skip to content

Reduce baseline RPC usage #952

@dancoombs

Description

@dancoombs

Describe the feature
It currently looks like we issue the following RPC calls per block on a bedrock network with 2 builders:

  • 8x eth_feeHistory
  • 2x eth_call
  • 2x eth_getTransactionCount
  • 1x eth_getLogs

And then 2x eth_getBalance every 10s.

We can reduce this per-block baseline by:

  1. Moving eth_getTransactionCount and eth_getBalance, which are used by the builder, into the chain tracking logic. Only issue these calls when a transaction is mined.
  2. Removing the isFjord() check from the bedrock sync da logic
  3. Investigate where eth_feeHistory is being called, it should be called once per block, and the pool should serve as source of truth.

Ideally we get to:

  • 1x eth_feeHistory - determine base/priority fee
  • 1x eth_getLogs - handle entrypoint events
  • 1x eth_call - DA data updates
  • (on transaction mined for tracked address) 1x eth_getBalance,

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions