Trait evm_rpc::BasicERPC[][src]

pub trait BasicERPC: Sized + Send + Sync + 'static {
    type Metadata: Metadata;
    fn block_number(&self, meta: Self::Metadata) -> Result<Hex<usize>, Error>;
fn balance(
        &self,
        meta: Self::Metadata,
        address: Hex<Address>,
        block: Option<String>
    ) -> Result<Hex<U256>, Error>;
fn storage_at(
        &self,
        meta: Self::Metadata,
        address: Hex<Address>,
        data: Hex<H256>,
        block: Option<String>
    ) -> Result<Hex<H256>, Error>;
fn transaction_count(
        &self,
        meta: Self::Metadata,
        address: Hex<Address>,
        block: Option<String>
    ) -> Result<Hex<U256>, Error>;
fn code(
        &self,
        meta: Self::Metadata,
        address: Hex<Address>,
        block: Option<String>
    ) -> Result<Bytes, Error>;
fn transaction_by_hash(
        &self,
        meta: Self::Metadata,
        tx_hash: Hex<H256>
    ) -> Result<Option<RPCTransaction>, Error>;
fn transaction_receipt(
        &self,
        meta: Self::Metadata,
        tx_hash: Hex<H256>
    ) -> Result<Option<RPCReceipt>, Error>;
fn call(
        &self,
        meta: Self::Metadata,
        tx: RPCTransaction,
        block: Option<String>,
        meta_keys: Option<Vec<String>>
    ) -> Result<Bytes, Error>;
fn estimate_gas(
        &self,
        meta: Self::Metadata,
        tx: RPCTransaction,
        block: Option<String>,
        meta_keys: Option<Vec<String>>
    ) -> Result<Hex<Gas>, Error>;
fn logs(
        &self,
        meta: Self::Metadata,
        log_filter: RPCLogFilter
    ) -> Result<Vec<RPCLog>, Error>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }

Associated Types

type Metadata: Metadata[src]

Loading content...

Required methods

fn block_number(&self, meta: Self::Metadata) -> Result<Hex<usize>, Error>[src]

fn balance(
    &self,
    meta: Self::Metadata,
    address: Hex<Address>,
    block: Option<String>
) -> Result<Hex<U256>, Error>
[src]

fn storage_at(
    &self,
    meta: Self::Metadata,
    address: Hex<Address>,
    data: Hex<H256>,
    block: Option<String>
) -> Result<Hex<H256>, Error>
[src]

fn transaction_count(
    &self,
    meta: Self::Metadata,
    address: Hex<Address>,
    block: Option<String>
) -> Result<Hex<U256>, Error>
[src]

fn code(
    &self,
    meta: Self::Metadata,
    address: Hex<Address>,
    block: Option<String>
) -> Result<Bytes, Error>
[src]

fn transaction_by_hash(
    &self,
    meta: Self::Metadata,
    tx_hash: Hex<H256>
) -> Result<Option<RPCTransaction>, Error>
[src]

fn transaction_receipt(
    &self,
    meta: Self::Metadata,
    tx_hash: Hex<H256>
) -> Result<Option<RPCReceipt>, Error>
[src]

fn call(
    &self,
    meta: Self::Metadata,
    tx: RPCTransaction,
    block: Option<String>,
    meta_keys: Option<Vec<String>>
) -> Result<Bytes, Error>
[src]

fn estimate_gas(
    &self,
    meta: Self::Metadata,
    tx: RPCTransaction,
    block: Option<String>,
    meta_keys: Option<Vec<String>>
) -> Result<Hex<Gas>, Error>
[src]

fn logs(
    &self,
    meta: Self::Metadata,
    log_filter: RPCLogFilter
) -> Result<Vec<RPCLog>, Error>
[src]

Loading content...

Provided methods

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

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

Loading content...

Implementors

Loading content...