mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-07 13:35:04 -05:00
12 lines
448 B
Rust
12 lines
448 B
Rust
use alloy_rpc_types::RpcModules;
|
|
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
|
|
|
|
/// RPC namespace, used to find the versions of all rpc modules
|
|
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "rpc"))]
|
|
#[cfg_attr(feature = "client", rpc(server, client, namespace = "rpc"))]
|
|
pub trait RpcApi {
|
|
/// Lists enabled APIs and the version of each.
|
|
#[method(name = "modules")]
|
|
fn rpc_modules(&self) -> RpcResult<RpcModules>;
|
|
}
|