Struct fathom_web3::api::Eth
source · [−]pub struct Eth<T> { /* private fields */ }
Expand description
Eth
namespace
Implementations
sourceimpl<T: Transport> Eth<T>
impl<T: Transport> Eth<T>
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get list of available accounts.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get current block number
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Call a constant method of contract without changing the state of the blockchain.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get coinbase address
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Compile LLL
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Compile Solidity
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Compile Serpent
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Call a contract without changing the state of the blockchain to estimate gas usage.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get current recommended gas price
sourcepub fn fee_history(
&self,
block_count: U256,
newest_block: BlockNumber,
reward_percentiles: Option<Vec<f64>>
) -> CallFuture<FeeHistory, 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>;
pub fn fee_history(
&self,
block_count: U256,
newest_block: BlockNumber,
reward_percentiles: Option<Vec<f64>>
) -> CallFuture<FeeHistory, 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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Returns a collection of historical gas information. This can be used for evaluating the max_fee_per_gas and max_priority_fee_per_gas to send the future transactions.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get balance of given address
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get all logs matching a given filter object
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get block details with transaction hashes.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get block details with full transaction objects.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get number of transactions in block
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get code under given address
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get supported compilers
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get chain id
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
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.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get storage entry
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get nonce
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get transaction
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get transaction receipt
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get uncle header by block ID and uncle index.
This method is meant for TurboGeth compatiblity, which is missing transaction hashes in the response.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get uncle by block ID and uncle index – transactions only has hashes.
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get uncle count in block
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get work package
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get hash rate
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get mining status
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Start new block filter
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Start new pending transaction filter
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Start new pending transaction filter
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Sends a rlp-encoded signed transaction
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Sends a transaction transaction
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Signs a hash of given data
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Submit hashrate of external miner
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Submit work of external miner
sourcepub 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>;
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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Get syncing status
sourcepub fn proof(
&self,
address: Address,
keys: Vec<U256>,
block: Option<BlockNumber>
) -> CallFuture<Option<Proof>, 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>;
pub fn proof(
&self,
address: Address,
keys: Vec<U256>,
block: Option<BlockNumber>
) -> CallFuture<Option<Proof>, 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>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Returns the account- and storage-values of the specified account including the Merkle-proof.