[][src]Struct web3::api::Eth

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

Eth namespace

Implementations

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

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get list of available accounts.

pub fn block_number(&self) -> CallFuture<U64, T::Out>

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get current block number

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

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

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get coinbase address

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Compile LLL

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Compile Solidity

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Compile Serpent

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

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

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get current recommended gas price

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get balance of given address

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get all logs matching a given filter object

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get block details with transaction hashes.

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get block details with full transaction objects.

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get number of transactions in block

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get code under given address

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get supported compilers

pub fn chain_id(&self) -> CallFuture<U256, T::Out>

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get chain id

pub fn request_accounts(&self) -> CallFuture<Vec<Address>, T::Out>

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get available user accounts. This method is only available in the browser. With MetaMask, this will cause the popup that prompts the user to allow or deny access to their accounts to your app.

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get storage entry

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get nonce

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get transaction

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get transaction receipt

pub fn uncle_header(
    &self,
    block: BlockId,
    index: Index
) -> CallFuture<Option<BlockHeader>, T::Out>

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get uncle header by block ID and uncle index.

This method is meant for TurboGeth compatiblity, which is missing transaction hashes in the response.

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[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>

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get uncle count in block

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get work package

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get hash rate

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get mining status

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Start new block filter

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Start new pending transaction filter

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Start new pending transaction filter

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Sends a rlp-encoded signed transaction

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Sends a transaction transaction

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Signs a hash of given data

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Submit hashrate of external miner

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Submit work of external miner

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get syncing status

Trait Implementations

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,