ethportal-api 0.1.4

Definitions for various Ethereum Portal Network JSONRPC APIs
1
2
3
4
5
6
7
8
9
use jsonrpsee::{core::RpcResult, proc_macros::rpc};

/// Web3 JSON-RPC endpoints
#[cfg(any(feature = "client", feature = "server"))]
#[rpc(client, server, namespace = "web3")]
pub trait Web3Api {
    #[method(name = "clientVersion")]
    async fn client_version(&self) -> RpcResult<String>;
}