pub struct Eth<T> { /* private fields */ }
Expand description

Eth namespace

Implementations

Get list of available accounts.

Get current block number

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

Get coinbase address

Compile LLL

Compile Solidity

Compile Serpent

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

Get current recommended gas price

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.

Get balance of given address

Get all logs matching a given filter object

Get block details with transaction hashes.

Get block details with full transaction objects.

Get number of transactions in block

Get code under given address

Get supported compilers

Get chain id

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.

Get storage entry

Get nonce

Get transaction

Get transaction receipt

Get uncle header by block ID and uncle index.

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

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

Get uncle count in block

Get work package

Get hash rate

Get mining status

Start new block filter

Start new pending transaction filter

Start new pending transaction filter

Sends a rlp-encoded signed transaction

Sends a transaction transaction

Signs a hash of given data

Submit hashrate of external miner

Submit work of external miner

Get syncing status

Returns the account- and storage-values of the specified account including the Merkle-proof.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Creates new API namespace
Borrows a transport.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more