Struct web3::contract::Contract

source ·
pub struct Contract<T: Transport> { /* private fields */ }
Expand description

Ethereum Contract Interface

Implementations§

Creates deployment builder for a contract given it’s ABI in JSON.

Creates new Contract Interface given blockchain address and ABI

Creates new Contract Interface given blockchain address and JSON containing ABI

Returns contract address

Execute a contract function

Execute a contract function and wait for confirmations

Estimate gas required for this function call.

Call constant function

Trait Implementations§

Formats the value using the given formatter. Read more

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.

Calls U::from(self).

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

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.
Get the TypeId of this object.