Trait fc_rpc::Web3ApiServer[][src]

pub trait Web3ApiServer: 'static + Send + Sync {
    pub fn client_version(&self) -> Result<String, Error>;
pub fn sha3(&self, Bytes) -> Result<H256, Error>; pub fn to_delegate<M>(self) -> IoDelegate<Self, M>
    where
        M: Metadata
, { ... } }

Web3 rpc interface.

Required methods

pub fn client_version(&self) -> Result<String, Error>[src]

Returns current client version.

pub fn sha3(&self, Bytes) -> Result<H256, Error>[src]

Returns sha3 of the given data

Loading content...

Provided methods

pub fn to_delegate<M>(self) -> IoDelegate<Self, M> where
    M: Metadata
[src]

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

Implementors

impl<B, C> Web3Api for Web3Api<B, C> where
    C: ProvideRuntimeApi<B> + AuxStore,
    C::Api: EthereumRuntimeRPCApi<B>,
    C: HeaderBackend<B> + HeaderMetadata<B, Error = BlockChainError> + 'static,
    C: Send + Sync + 'static,
    B: BlockT<Hash = H256> + Send + Sync + 'static, 
[src]

Loading content...