reth_rpc/eth/helpers/
spec.rs

1use alloy_primitives::U256;
2use reth_rpc_convert::RpcConvert;
3use reth_rpc_eth_api::{
4    helpers::{spec::SignersForApi, EthApiSpec},
5    RpcNodeCore,
6};
7use reth_storage_api::ProviderTx;
8
9use crate::EthApi;
10
11impl<N, Rpc> EthApiSpec for EthApi<N, Rpc>
12where
13    N: RpcNodeCore,
14    Rpc: RpcConvert<Primitives = N::Primitives>,
15{
16    type Transaction = ProviderTx<N::Provider>;
17    type Rpc = Rpc::Network;
18
19    fn starting_block(&self) -> U256 {
20        self.inner.starting_block()
21    }
22
23    fn signers(&self) -> &SignersForApi<Self> {
24        self.inner.signers()
25    }
26}