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