Trait fc_rpc_core::Web3ApiServer
source · pub trait Web3ApiServer: Sized + Send + Sync + 'static {
// Required methods
fn client_version(&self) -> RpcResult<String>;
fn sha3(&self, input: Bytes) -> RpcResult<H256>;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the Web3Api
RPC API.
Required Methods§
sourcefn client_version(&self) -> RpcResult<String>
fn client_version(&self) -> RpcResult<String>
Returns current client version.
Provided Methods§
Object Safety§
This trait is not object safe.