[][src]Struct web3_etz::api::Eth

pub struct Eth<T> { /* fields omitted */ }

Eth namespace

Methods

impl<T: Transport> Eth<T>[src]

pub fn accounts(&self) -> CallFuture<Vec<Address>, T::Out>[src]

Get list of available accounts.

pub fn block_number(&self) -> CallFuture<U256, T::Out>[src]

Get current block number

pub fn call(
    &self,
    req: CallRequest,
    block: Option<BlockNumber>
) -> CallFuture<Bytes, T::Out>
[src]

Call a constant method of contract without changing the state of the blockchain.

pub fn coinbase(&self) -> CallFuture<Address, T::Out>[src]

Get coinbase address

pub fn compile_lll(&self, code: String) -> CallFuture<Bytes, T::Out>[src]

Compile LLL

pub fn compile_solidity(&self, code: String) -> CallFuture<Bytes, T::Out>[src]

Compile Solidity

pub fn compile_serpent(&self, code: String) -> CallFuture<Bytes, T::Out>[src]

Compile Serpent

pub fn estimate_gas(
    &self,
    req: CallRequest,
    block: Option<BlockNumber>
) -> CallFuture<U256, T::Out>
[src]

Call a contract without changing the state of the blockchain to estimate gas usage.

pub fn gas_price(&self) -> CallFuture<U256, T::Out>[src]

Get current recommended gas price

pub fn balance(
    &self,
    address: Address,
    block: Option<BlockNumber>
) -> CallFuture<U256, T::Out>
[src]

Get balance of given address

pub fn logs(&self, filter: Filter) -> CallFuture<Vec<Log>, T::Out>[src]

Get all logs matching a given filter object

pub fn block(&self, block: BlockId) -> CallFuture<Option<Block<H256>>, T::Out>[src]

Get block details with transaction hashes.

pub fn block_with_txs(
    &self,
    block: BlockId
) -> CallFuture<Option<Block<Transaction>>, T::Out>
[src]

Get block details with full transaction objects.

pub fn block_transaction_count(
    &self,
    block: BlockId
) -> CallFuture<Option<U256>, T::Out>
[src]

Get number of transactions in block

pub fn code(
    &self,
    address: Address,
    block: Option<BlockNumber>
) -> CallFuture<Bytes, T::Out>
[src]

Get code under given address

pub fn compilers(&self) -> CallFuture<Vec<String>, T::Out>[src]

Get supported compilers

pub fn storage(
    &self,
    address: Address,
    idx: U256,
    block: Option<BlockNumber>
) -> CallFuture<H256, T::Out>
[src]

Get storage entry

pub fn transaction_count(
    &self,
    address: Address,
    block: Option<BlockNumber>
) -> CallFuture<U256, T::Out>
[src]

Get nonce

pub fn transaction(
    &self,
    id: TransactionId
) -> CallFuture<Option<Transaction>, T::Out>
[src]

Get transaction

pub fn transaction_receipt(
    &self,
    hash: H256
) -> CallFuture<Option<TransactionReceipt>, T::Out>
[src]

Get transaction receipt

pub fn uncle(
    &self,
    block: BlockId,
    index: Index
) -> CallFuture<Option<Block<H256>>, T::Out>
[src]

Get uncle by block ID and uncle index -- transactions only has hashes.

pub fn uncle_count(&self, block: BlockId) -> CallFuture<Option<U256>, T::Out>[src]

Get uncle count in block

pub fn work(&self) -> CallFuture<Work, T::Out>[src]

Get work package

pub fn hashrate(&self) -> CallFuture<U256, T::Out>[src]

Get hash rate

pub fn mining(&self) -> CallFuture<bool, T::Out>[src]

Get mining status

pub fn new_block_filter(&self) -> CallFuture<U256, T::Out>[src]

Start new block filter

pub fn new_pending_transaction_filter(&self) -> CallFuture<U256, T::Out>[src]

Start new pending transaction filter

pub fn protocol_version(&self) -> CallFuture<String, T::Out>[src]

Start new pending transaction filter

pub fn send_raw_transaction(&self, rlp: Bytes) -> CallFuture<H256, T::Out>[src]

Sends a rlp-encoded signed transaction

pub fn send_transaction(
    &self,
    tx: TransactionRequest
) -> CallFuture<H256, T::Out>
[src]

Sends a transaction transaction

pub fn sign(&self, address: Address, data: Bytes) -> CallFuture<H520, T::Out>[src]

Signs a hash of given data

pub fn submit_hashrate(&self, rate: U256, id: H256) -> CallFuture<bool, T::Out>[src]

Submit hashrate of external miner

pub fn submit_work(
    &self,
    nonce: H64,
    pow_hash: H256,
    mix_hash: H256
) -> CallFuture<bool, T::Out>
[src]

Submit work of external miner

pub fn syncing(&self) -> CallFuture<SyncState, T::Out>[src]

Get syncing status

Trait Implementations

impl<T: Transport> Namespace<T> for Eth<T>[src]

impl<T: Clone> Clone for Eth<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Eth<T>[src]

Auto Trait Implementations

impl<T> Sync for Eth<T> where
    T: Sync

impl<T> Send for Eth<T> where
    T: Send

impl<T> Unpin for Eth<T> where
    T: Unpin

impl<T> RefUnwindSafe for Eth<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for Eth<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.