Trait ethcore_rpc::v1::traits::eth::Eth []

pub trait Eth: Sized + Send + Sync + 'static {
    type Metadata: Metadata;
    fn protocol_version(&self) -> Result<String, Error>;
    fn syncing(&self) -> Result<SyncStatus, Error>;
    fn hashrate(&self) -> Result<U256, Error>;
    fn author(&self, Self::Metadata) -> BoxFuture<H160, Error>;
    fn is_mining(&self) -> Result<bool, Error>;
    fn gas_price(&self) -> Result<U256, Error>;
    fn accounts(&self, Self::Metadata) -> BoxFuture<Vec<H160>, Error>;
    fn block_number(&self) -> Result<U256, Error>;
    fn balance(&self, H160, Trailing<BlockNumber>) -> Result<U256, Error>;
    fn storage_at(&self, H160, U256, Trailing<BlockNumber>) -> Result<H256, Error>;
    fn block_by_hash(&self, H256, bool) -> Result<Option<RichBlock>, Error>;
    fn block_by_number(&self, BlockNumber, bool) -> Result<Option<RichBlock>, Error>;
    fn transaction_count(&self, H160, Trailing<BlockNumber>) -> Result<U256, Error>;
    fn block_transaction_count_by_hash(&self, H256) -> Result<Option<U256>, Error>;
    fn block_transaction_count_by_number(&self,
                                     BlockNumber)
                                     -> Result<Option<U256>, Error>; fn block_uncles_count_by_hash(&self, H256) -> Result<Option<U256>, Error>; fn block_uncles_count_by_number(&self,
                                BlockNumber)
                                -> Result<Option<U256>, Error>; fn code_at(&self, H160, Trailing<BlockNumber>) -> Result<Bytes, Error>; fn send_raw_transaction(&self, Bytes) -> Result<H256, Error>; fn submit_transaction(&self, Bytes) -> Result<H256, Error>; fn call(&self, CallRequest, Trailing<BlockNumber>) -> Result<Bytes, Error>; fn estimate_gas(&self,
                CallRequest,
                Trailing<BlockNumber>)
                -> Result<U256, Error>; fn transaction_by_hash(&self, H256) -> Result<Option<Transaction>, Error>; fn transaction_by_block_hash_and_index(&self,
                                       H256,
                                       Index)
                                       -> Result<Option<Transaction>, Error>; fn transaction_by_block_number_and_index(&self,
                                         BlockNumber,
                                         Index)
                                         -> Result<Option<Transaction>, Error>; fn transaction_receipt(&self, H256) -> Result<Option<Receipt>, Error>; fn uncle_by_block_hash_and_index(&self,
                                 H256,
                                 Index)
                                 -> Result<Option<RichBlock>, Error>; fn uncle_by_block_number_and_index(&self,
                                   BlockNumber,
                                   Index)
                                   -> Result<Option<RichBlock>, Error>; fn compilers(&self) -> Result<Vec<String>, Error>; fn compile_lll(&self, String) -> Result<Bytes, Error>; fn compile_solidity(&self, String) -> Result<Bytes, Error>; fn compile_serpent(&self, String) -> Result<Bytes, Error>; fn logs(&self, Filter) -> Result<Vec<Log>, Error>; fn work(&self, Trailing<u64>) -> Result<Work, Error>; fn submit_work(&self, H64, H256, H256) -> Result<bool, Error>; fn submit_hashrate(&self, U256, H256) -> Result<bool, Error>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }

Eth rpc interface.

Associated Types

Requests metadata

Required Methods

Returns protocol version encoded as a string (quotes are necessary).

Returns an object with data about the sync status or false. (wtf?)

Returns the number of hashes per second that the node is mining with.

Returns block author.

Returns true if client is actively mining new blocks.

Returns current gas_price.

Returns accounts list.

Returns highest block number.

Returns balance of the given account.

Returns content of the storage at given address.

Returns block with given hash.

Returns block with given number.

Returns the number of transactions sent from given address at given time (block number).

Returns the number of transactions in a block with given hash.

Returns the number of transactions in a block with given block number.

Returns the number of uncles in a block with given hash.

Returns the number of uncles in a block with given block number.

Returns the code at given address at given time (block number).

Sends signed transaction, returning its hash.

Alias of eth_sendRawTransaction.

Call contract, returning the output data.

Estimate gas needed for execution of given contract.

Get transaction by its hash.

Returns transaction at given block hash and index.

Returns transaction by given block number and index.

Returns transaction receipt.

Returns an uncles at given block and index.

Returns an uncles at given block and index.

Returns available compilers.

Compiles lll code.

Compiles solidity.

Compiles serpent.

Returns logs matching given filter object.

Returns the hash of the current block, the seedHash, and the boundary condition to be met.

Used for submitting a proof-of-work solution.

Used for submitting mining hashrate.

Provided Methods

Transform this into an IoDelegate, automatically wrapping the parameters.

Implementors