[−][src]Struct web3_etz::api::Eth
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]
&self,
req: CallRequest,
block: Option<BlockNumber>
) -> CallFuture<Bytes, T::Out>
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]
&self,
req: CallRequest,
block: Option<BlockNumber>
) -> CallFuture<U256, T::Out>
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]
&self,
address: Address,
block: Option<BlockNumber>
) -> CallFuture<U256, T::Out>
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]
&self,
block: BlockId
) -> CallFuture<Option<Block<Transaction>>, T::Out>
Get block details with full transaction objects.
pub fn block_transaction_count(
&self,
block: BlockId
) -> CallFuture<Option<U256>, T::Out>
[src]
&self,
block: BlockId
) -> CallFuture<Option<U256>, T::Out>
Get number of transactions in block
pub fn code(
&self,
address: Address,
block: Option<BlockNumber>
) -> CallFuture<Bytes, T::Out>
[src]
&self,
address: Address,
block: Option<BlockNumber>
) -> CallFuture<Bytes, T::Out>
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]
&self,
address: Address,
idx: U256,
block: Option<BlockNumber>
) -> CallFuture<H256, T::Out>
Get storage entry
pub fn transaction_count(
&self,
address: Address,
block: Option<BlockNumber>
) -> CallFuture<U256, T::Out>
[src]
&self,
address: Address,
block: Option<BlockNumber>
) -> CallFuture<U256, T::Out>
Get nonce
pub fn transaction(
&self,
id: TransactionId
) -> CallFuture<Option<Transaction>, T::Out>
[src]
&self,
id: TransactionId
) -> CallFuture<Option<Transaction>, T::Out>
Get transaction
pub fn transaction_receipt(
&self,
hash: H256
) -> CallFuture<Option<TransactionReceipt>, T::Out>
[src]
&self,
hash: H256
) -> CallFuture<Option<TransactionReceipt>, T::Out>
Get transaction receipt
pub fn uncle(
&self,
block: BlockId,
index: Index
) -> CallFuture<Option<Block<H256>>, T::Out>
[src]
&self,
block: BlockId,
index: Index
) -> CallFuture<Option<Block<H256>>, T::Out>
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]
&self,
tx: TransactionRequest
) -> CallFuture<H256, T::Out>
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]
&self,
nonce: H64,
pow_hash: H256,
mix_hash: H256
) -> CallFuture<bool, T::Out>
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(&self) -> 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> Unpin for Eth<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Eth<T> where
T: Sync,
T: Sync,
impl<T> Send for Eth<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for Eth<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Eth<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Typeable for T where
T: Any,
T: Any,