Skip to content

[Providers] Use EthApi for embedded rollup node #394

@frisitano

Description

@frisitano

Overview

We are sensitive to the latency of the RPC when fetching blocks and executing requests against the EN from the rollup node. Currently, we are using the http provider from the EN. Instead, we should migrate to using the EthApi, which is an in-process type that can serve all eth_ related requests. This should have much lower latency and improve performance. We should also maintain support for a network-based RPC, possibly by implementing alloy_provider::Provider<Scroll> on the EthApi, but this idea should be analyzed and validated. Below is an example of how we fetch the EthApi from the node.

let rpc = node.rpc.inner.eth_api();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions