Trait fc_rpc::EthFilterApiServer[][src]

pub trait EthFilterApiServer: 'static + Send + Sync {
    pub fn new_filter(&self, Filter) -> Result<U256, Error>;
pub fn new_block_filter(&self) -> Result<U256, Error>;
pub fn new_pending_transaction_filter(&self) -> Result<U256, Error>;
pub fn filter_changes(&self, Index) -> Result<FilterChanges, Error>;
pub fn filter_logs(&self, Index) -> Result<Vec<Log, Global>, Error>;
pub fn uninstall_filter(&self, Index) -> Result<bool, Error>; pub fn to_delegate<M>(self) -> IoDelegate<Self, M>
    where
        M: Metadata
, { ... } }

Eth filters rpc api (polling).

Required methods

pub fn new_filter(&self, Filter) -> Result<U256, Error>[src]

Returns id of new filter.

pub fn new_block_filter(&self) -> Result<U256, Error>[src]

Returns id of new block filter.

pub fn new_pending_transaction_filter(&self) -> Result<U256, Error>[src]

Returns id of new block filter.

pub fn filter_changes(&self, Index) -> Result<FilterChanges, Error>[src]

Returns filter changes since last poll.

pub fn filter_logs(&self, Index) -> Result<Vec<Log, Global>, Error>[src]

Returns all logs matching given filter (in a range ‘from’ - ‘to’).

pub fn uninstall_filter(&self, Index) -> Result<bool, Error>[src]

Uninstalls filter.

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> EthFilterApi for EthFilterApi<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...